Class InvalidTokenException

All Implemented Interfaces:
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:
  • Field Details

    • ILLEGAL_CHAR

      public static final byte ILLEGAL_CHAR
      The character or byte at the specified offset is not allowed at that point.
      See Also:
    • XML_TARGET

      public static final byte XML_TARGET
      The target of a processing instruction was XML.
      See Also:
    • DUPLICATE_ATTRIBUTE

      public static final byte DUPLICATE_ATTRIBUTE
      A 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()