com.thaiopensource.xml.tok.PartialCharException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trang Show documentation
Show all versions of trang Show documentation
Trang, a multi-format schema converter based on RELAX NG.
package com.thaiopensource.xml.tok;
/**
* Thrown to indicate that the subarray being tokenized is not the
* complete encoding of one or more XML characters, but might be if
* more chars were added.
*/
public class PartialCharException extends PartialTokenException {
private final int leadCharIndex;
PartialCharException(int leadCharIndex) {
this.leadCharIndex = leadCharIndex;
}
/**
* Returns the index of the first char that is not part of the complete
* encoding of a character.
*/
public int getLeadCharIndex() {
return leadCharIndex;
}
}