01: package com.jclark.xml.tok;
02:
03: /**
04: * Thrown to indicate that the subarray being tokenized is not the
05: * complete encoding of one or more characters, but might be if
06: * more bytes were added.
07: * @version $Revision: 1.2 $ $Date: 1998/02/17 04:24:11 $
08: */
09: public class PartialCharException extends PartialTokenException {
10: private int leadByteIndex;
11:
12: PartialCharException(int leadByteIndex) {
13: this .leadByteIndex = leadByteIndex;
14: }
15:
16: /**
17: * Returns the index of the first byte that is not part of the complete
18: * encoding of a character.
19: */
20: public int getLeadByteIndex() {
21: return leadByteIndex;
22: }
23: }
|