Package com.thaiopensource.xml.tok
Class InvalidTokenException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.thaiopensource.xml.tok.TokenException
-
- com.thaiopensource.xml.tok.InvalidTokenException
-
- All Implemented Interfaces:
java.io.Serializable
public class InvalidTokenException extends TokenException
Thrown to indicate that the byte subarray being tokenized does not start with a legal XML token and cannot start one if more bytes are added.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byteDUPLICATE_ATTRIBUTEA duplicate attribute was specified.static byteILLEGAL_CHARThe character or byte at the specified offset is not allowed at that point.static byteXML_TARGETThe target of a processing instruction was XML.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOffset()Returns the offset after the longest initial subarray which could start a legal XML token.bytegetType()
-
-
-
Field Detail
-
ILLEGAL_CHAR
public static final byte ILLEGAL_CHAR
The character or byte at the specified offset is not allowed at that point.- See Also:
- Constant Field Values
-
XML_TARGET
public static final byte XML_TARGET
The target of a processing instruction was XML.- See Also:
- Constant Field Values
-
DUPLICATE_ATTRIBUTE
public static final byte DUPLICATE_ATTRIBUTE
A duplicate attribute was specified.- See Also:
- Constant Field Values
-
-