Class 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 byte DUPLICATE_ATTRIBUTE
      A duplicate attribute was specified.
      static byte ILLEGAL_CHAR
      The character or byte at the specified offset is not allowed at that point.
      static byte XML_TARGET
      The target of a processing instruction was XML.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOffset()
      Returns the offset after the longest initial subarray which could start a legal XML token.
      byte getType()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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
    • Method Detail

      • 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()