01: package com.jclark.xml.tok;
02:
03: /**
04: * Thrown to indicate that the byte subarray being tokenized is a legal XML
05: * token, but that subsequent bytes in the same entity could be part of
06: * the token. For example, <code>Encoding.tokenizeProlog</code>
07: * would throw this if the byte subarray consists of a legal XML name.
08: * @version $Revision: 1.3 $ $Date: 1998/02/17 04:24:06 $
09: */
10: public class ExtensibleTokenException extends TokenException {
11: private int tokType;
12:
13: ExtensibleTokenException(int tokType) {
14: this .tokType = tokType;
15: }
16:
17: /**
18: * Returns the type of token in the byte subarrary.
19: */
20: public int getTokenType() {
21: return tokType;
22: }
23: }
|