Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import javax.xml.stream.XMLStreamReader;

public class Main {
    public static String getStateName(XMLStreamReader reader) {
        /* 215 */return getStateName(reader.getEventType());
        /*     */}

    public static String getStateName(int state) {
        /* 219 */switch (state) {
        /*     */case 10:
            /* 221 */return "ATTRIBUTE";
        /*     */case 12:
            /* 223 */return "CDATA";
        /*     */case 4:
            /* 225 */return "CHARACTERS";
        /*     */case 5:
            /* 227 */return "COMMENT";
        /*     */case 11:
            /* 229 */return "DTD";
        /*     */case 8:
            /* 231 */return "END_DOCUMENT";
        /*     */case 2:
            /* 233 */return "END_ELEMENT";
        /*     */case 15:
            /* 235 */return "ENTITY_DECLARATION";
        /*     */case 9:
            /* 237 */return "ENTITY_REFERENCE";
        /*     */case 13:
            /* 239 */return "NAMESPACE";
        /*     */case 14:
            /* 241 */return "NOTATION_DECLARATION";
        /*     */case 3:
            /* 243 */return "PROCESSING_INSTRUCTION";
        /*     */case 6:
            /* 245 */return "SPACE";
        /*     */case 7:
            /* 247 */return "START_DOCUMENT";
        /*     */case 1:
            /* 249 */return "START_ELEMENT";
        /*     */}
        /* 251 */return "UNKNOWN";
        /*     */}
}