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:
Serializable
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:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
A duplicate attribute was specified.static final byte
The character or byte at the specified offset is not allowed at that point.static final byte
The target of a processing instruction was XML. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ILLEGAL_CHAR
public static final byte ILLEGAL_CHARThe character or byte at the specified offset is not allowed at that point.- See Also:
-
XML_TARGET
public static final byte XML_TARGETThe target of a processing instruction was XML.- See Also:
-
DUPLICATE_ATTRIBUTE
public static final byte DUPLICATE_ATTRIBUTEA duplicate attribute was specified.- See Also:
-
-
Method Details
-
getOffset
public final int getOffset()Returns the offset after the longest initial subarray which could start a legal XML token. -
getType
public final byte getType()
-