File: ExtensibleTokenException.java

package info (click to toggle)
lib-xp-java 0.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,652 kB
  • ctags: 2,424
  • sloc: java: 8,085; makefile: 53; sh: 17; xml: 7
file content (23 lines) | stat: -rw-r--r-- 686 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.jclark.xml.tok;

/**
 * Thrown to indicate that the byte subarray being tokenized is a legal XML
 * token, but that subsequent bytes in the same entity could be part of
 * the token.  For example, <code>Encoding.tokenizeProlog</code>
 * would throw this if the byte subarray consists of a legal XML name.
 * @version $Revision: 1.3 $ $Date: 1998/02/17 04:24:06 $
 */
public class ExtensibleTokenException extends TokenException {
  private int tokType;

  ExtensibleTokenException(int tokType) {
    this.tokType = tokType;
  }

  /**
   * Returns the type of token in the byte subarrary.
   */
  public int getTokenType() {
    return tokType;
  }
}