    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class com.jclark.xml.tok.PrologParser

    java.lang.Object
       |
       +----com.jclark.xml.tok.PrologParser

public class PrologParser
extends Object
implements Cloneable

Parses the prolog of an XML document. A `PrologParser` object represents the state of a parse of the prolog. It operates on the tokens returned by `Encoding.tokenizeProlog`. It does not build any data structures to represent the information in the prolog; instead it tells the caller the action needed for each token. The state of the parse can be saved by using the `clone` method.

##

ACTION_ATTLIST_ELEMENT_NAME
ACTION_ATTRIBUTE_ENUM_VALUE
ACTION_ATTRIBUTE_NAME
ACTION_ATTRIBUTE_NOTATION_VALUE
ACTION_ATTRIBUTE_TYPE_CDATA
ACTION_ATTRIBUTE_TYPE_ENTITIES
ACTION_ATTRIBUTE_TYPE_ENTITY
ACTION_ATTRIBUTE_TYPE_ID
ACTION_ATTRIBUTE_TYPE_IDREF
ACTION_ATTRIBUTE_TYPE_IDREFS
ACTION_ATTRIBUTE_TYPE_NMTOKEN
ACTION_ATTRIBUTE_TYPE_NMTOKENS
ACTION_COMMENT
ACTION_CONTENT_ANY
ACTION_CONTENT_ELEMENT
ACTION_CONTENT_ELEMENT_OPT
ACTION_CONTENT_ELEMENT_PLUS
ACTION_CONTENT_ELEMENT_REP
ACTION_CONTENT_EMPTY
ACTION_CONTENT_PCDATA
ACTION_DECL_CLOSE
ACTION_DEFAULT_ATTRIBUTE_VALUE
ACTION_DOCTYPE_CLOSE
ACTION_DOCTYPE_NAME
ACTION_DOCTYPE_PUBLIC_ID
ACTION_DOCTYPE_SUBSET
ACTION_DOCTYPE_SYSTEM_ID
ACTION_ELEMENT_NAME
ACTION_ENTITY_NOTATION_NAME
ACTION_ENTITY_PUBLIC_ID
ACTION_ENTITY_SYSTEM_ID
ACTION_ENTITY_VALUE_NO_PEREFS
ACTION_ENTITY_VALUE_WITH_PEREFS
ACTION_FIXED_ATTRIBUTE_VALUE
ACTION_GENERAL_ENTITY_NAME
ACTION_GROUP_CHOICE
ACTION_GROUP_CLOSE
ACTION_GROUP_CLOSE_OPT
ACTION_GROUP_CLOSE_PLUS
ACTION_GROUP_CLOSE_REP
ACTION_GROUP_OPEN
ACTION_GROUP_SEQUENCE
ACTION_IGNORE_SECT
ACTION_IMPLIED_ATTRIBUTE_VALUE
ACTION_INNER_PARAM_ENTITY_REF
ACTION_NONE
ACTION_NOTATION_NAME
ACTION_NOTATION_PUBLIC_ID
ACTION_NOTATION_SYSTEM_ID
ACTION_OUTER_PARAM_ENTITY_REF
ACTION_PARAM_ENTITY_NAME
ACTION_PI
ACTION_REQUIRED_ATTRIBUTE_VALUE
ACTION_TEXT_DECL
ACTION_XML_DECL
EXTERNAL_ENTITY
INTERNAL_ENTITY
PROLOG

##

PrologParser(byte)

##

action(int, byte[], int, int, Encoding)
clone()
end()
getGroupLevel()

##

ACTION_NONE

     public static final int ACTION_NONE

ACTION_XML_DECL

     public static final int ACTION_XML_DECL

ACTION_TEXT_DECL

     public static final int ACTION_TEXT_DECL

ACTION_PI

     public static final int ACTION_PI

ACTION_COMMENT

     public static final int ACTION_COMMENT

ACTION_DOCTYPE_NAME

     public static final int ACTION_DOCTYPE_NAME

ACTION_DOCTYPE_SYSTEM_ID

     public static final int ACTION_DOCTYPE_SYSTEM_ID

ACTION_DOCTYPE_PUBLIC_ID

     public static final int ACTION_DOCTYPE_PUBLIC_ID

ACTION_DOCTYPE_SUBSET

     public static final int ACTION_DOCTYPE_SUBSET

ACTION_DOCTYPE_CLOSE

     public static final int ACTION_DOCTYPE_CLOSE

ACTION_GENERAL_ENTITY_NAME

     public static final int ACTION_GENERAL_ENTITY_NAME

ACTION_PARAM_ENTITY_NAME

     public static final int ACTION_PARAM_ENTITY_NAME

ACTION_ENTITY_VALUE_WITH_PEREFS

     public static final int ACTION_ENTITY_VALUE_WITH_PEREFS

ACTION_ENTITY_VALUE_NO_PEREFS

     public static final int ACTION_ENTITY_VALUE_NO_PEREFS

ACTION_ENTITY_SYSTEM_ID

     public static final int ACTION_ENTITY_SYSTEM_ID

ACTION_ENTITY_PUBLIC_ID

     public static final int ACTION_ENTITY_PUBLIC_ID

ACTION_ENTITY_NOTATION_NAME

     public static final int ACTION_ENTITY_NOTATION_NAME

ACTION_NOTATION_NAME

     public static final int ACTION_NOTATION_NAME

ACTION_NOTATION_SYSTEM_ID

     public static final int ACTION_NOTATION_SYSTEM_ID

ACTION_NOTATION_PUBLIC_ID

     public static final int ACTION_NOTATION_PUBLIC_ID

ACTION_ATTRIBUTE_NAME

     public static final int ACTION_ATTRIBUTE_NAME

ACTION_ATTRIBUTE_TYPE_CDATA

     public static final int ACTION_ATTRIBUTE_TYPE_CDATA

ACTION_ATTRIBUTE_TYPE_ID

     public static final int ACTION_ATTRIBUTE_TYPE_ID

ACTION_ATTRIBUTE_TYPE_IDREF

     public static final int ACTION_ATTRIBUTE_TYPE_IDREF

ACTION_ATTRIBUTE_TYPE_IDREFS

     public static final int ACTION_ATTRIBUTE_TYPE_IDREFS

ACTION_ATTRIBUTE_TYPE_ENTITY

     public static final int ACTION_ATTRIBUTE_TYPE_ENTITY

ACTION_ATTRIBUTE_TYPE_ENTITIES

     public static final int ACTION_ATTRIBUTE_TYPE_ENTITIES

ACTION_ATTRIBUTE_TYPE_NMTOKEN

     public static final int ACTION_ATTRIBUTE_TYPE_NMTOKEN

ACTION_ATTRIBUTE_TYPE_NMTOKENS

     public static final int ACTION_ATTRIBUTE_TYPE_NMTOKENS

ACTION_ATTRIBUTE_ENUM_VALUE

     public static final int ACTION_ATTRIBUTE_ENUM_VALUE

ACTION_ATTRIBUTE_NOTATION_VALUE

     public static final int ACTION_ATTRIBUTE_NOTATION_VALUE

ACTION_ATTLIST_ELEMENT_NAME

     public static final int ACTION_ATTLIST_ELEMENT_NAME

ACTION_IMPLIED_ATTRIBUTE_VALUE

     public static final int ACTION_IMPLIED_ATTRIBUTE_VALUE

ACTION_REQUIRED_ATTRIBUTE_VALUE

     public static final int ACTION_REQUIRED_ATTRIBUTE_VALUE

ACTION_DEFAULT_ATTRIBUTE_VALUE

     public static final int ACTION_DEFAULT_ATTRIBUTE_VALUE

ACTION_FIXED_ATTRIBUTE_VALUE

     public static final int ACTION_FIXED_ATTRIBUTE_VALUE

ACTION_ELEMENT_NAME

     public static final int ACTION_ELEMENT_NAME

ACTION_CONTENT_ANY

     public static final int ACTION_CONTENT_ANY

ACTION_CONTENT_EMPTY

     public static final int ACTION_CONTENT_EMPTY

ACTION_CONTENT_PCDATA

     public static final int ACTION_CONTENT_PCDATA

ACTION_GROUP_OPEN

     public static final int ACTION_GROUP_OPEN

ACTION_GROUP_CLOSE

     public static final int ACTION_GROUP_CLOSE

ACTION_GROUP_CLOSE_REP

     public static final int ACTION_GROUP_CLOSE_REP

ACTION_GROUP_CLOSE_OPT

     public static final int ACTION_GROUP_CLOSE_OPT

ACTION_GROUP_CLOSE_PLUS

     public static final int ACTION_GROUP_CLOSE_PLUS

ACTION_GROUP_CHOICE

     public static final int ACTION_GROUP_CHOICE

ACTION_GROUP_SEQUENCE

     public static final int ACTION_GROUP_SEQUENCE

ACTION_CONTENT_ELEMENT

     public static final int ACTION_CONTENT_ELEMENT

ACTION_CONTENT_ELEMENT_REP

     public static final int ACTION_CONTENT_ELEMENT_REP

ACTION_CONTENT_ELEMENT_OPT

     public static final int ACTION_CONTENT_ELEMENT_OPT

ACTION_CONTENT_ELEMENT_PLUS

     public static final int ACTION_CONTENT_ELEMENT_PLUS

ACTION_OUTER_PARAM_ENTITY_REF

     public static final int ACTION_OUTER_PARAM_ENTITY_REF

ACTION_INNER_PARAM_ENTITY_REF

     public static final int ACTION_INNER_PARAM_ENTITY_REF

ACTION_IGNORE_SECT

     public static final int ACTION_IGNORE_SECT

ACTION_DECL_CLOSE

     public static final int ACTION_DECL_CLOSE

PROLOG

     public static final byte PROLOG

EXTERNAL_ENTITY

     public static final byte EXTERNAL_ENTITY

INTERNAL_ENTITY

     public static final byte INTERNAL_ENTITY

##

PrologParser

     public PrologParser(byte type)

##

end

     public final void end() throws PrologSyntaxException

action

     public int action(int tok,
                       byte buf[],
                       int start,
                       int end,
                       Encoding enc) throws PrologSyntaxException

clone

     public Object clone()

  Overrides:
    clone in class Object

getGroupLevel

     public final int getGroupLevel()

    All Packages  Class Hierarchy  This Package  Previous  Next  Index