Package kiyut.swing.text.xml
Class XMLScanner
- java.lang.Object
-
- kiyut.swing.text.xml.XMLScanner
-
public class XMLScanner extends Object
XML scanner for parsing xml text- Author:
- KIYUT
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_NAME_CONTEXTstatic intATTRIBUTE_VALUE_CONTEXTstatic intCDATA_CONTEXTstatic intCHARACTER_DATA_CONTEXTstatic intCOMMENT_CONTEXTstatic intDEFAULT_CONTEXTstatic intDOCTYPE_CONTEXTstatic intELEMENT_CONTEXTstatic intELEMENT_DECLARATION_CONTEXTstatic intENTITY_CONTEXTstatic intEOF_CONTEXTstatic intPI_CONTEXTstatic intTEMP_ERROR_CONTEXTstatic intXML_DECLARATION_CONTEXT
-
Constructor Summary
Constructors Constructor Description XMLScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetScanValue()intgetStartOffset()protected intnextChar()voidreset()intscan(int context)voidsetString(String string)protected intskipSpaces()
-
-
-
Field Detail
-
TEMP_ERROR_CONTEXT
public static final int TEMP_ERROR_CONTEXT
- See Also:
- Constant Field Values
-
EOF_CONTEXT
public static final int EOF_CONTEXT
- See Also:
- Constant Field Values
-
DEFAULT_CONTEXT
public static final int DEFAULT_CONTEXT
- See Also:
- Constant Field Values
-
COMMENT_CONTEXT
public static final int COMMENT_CONTEXT
- See Also:
- Constant Field Values
-
ELEMENT_CONTEXT
public static final int ELEMENT_CONTEXT
- See Also:
- Constant Field Values
-
CHARACTER_DATA_CONTEXT
public static final int CHARACTER_DATA_CONTEXT
- See Also:
- Constant Field Values
-
ATTRIBUTE_NAME_CONTEXT
public static final int ATTRIBUTE_NAME_CONTEXT
- See Also:
- Constant Field Values
-
ATTRIBUTE_VALUE_CONTEXT
public static final int ATTRIBUTE_VALUE_CONTEXT
- See Also:
- Constant Field Values
-
XML_DECLARATION_CONTEXT
public static final int XML_DECLARATION_CONTEXT
- See Also:
- Constant Field Values
-
DOCTYPE_CONTEXT
public static final int DOCTYPE_CONTEXT
- See Also:
- Constant Field Values
-
ENTITY_CONTEXT
public static final int ENTITY_CONTEXT
- See Also:
- Constant Field Values
-
ELEMENT_DECLARATION_CONTEXT
public static final int ELEMENT_DECLARATION_CONTEXT
- See Also:
- Constant Field Values
-
CDATA_CONTEXT
public static final int CDATA_CONTEXT
- See Also:
- Constant Field Values
-
PI_CONTEXT
public static final int PI_CONTEXT
- See Also:
- Constant Field Values
-
-
Method Detail
-
reset
public void reset()
-
setString
public void setString(String string)
-
nextChar
protected int nextChar()
-
skipSpaces
protected int skipSpaces()
-
getScanValue
public int getScanValue()
-
getStartOffset
public int getStartOffset()
-
scan
public int scan(int context)
-
-