com.thaiopensource.xml.tok.ExtensibleTokenException 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 char subarray being tokenized is a legal XML
* token, but that subsequent chars in the same entity could be part of
* the token. For example, Tokenizer.tokenizeProlog
* would throw this if the char subarray consists of a legal XML name.
*/
public class ExtensibleTokenException extends TokenException {
private final int tokType;
ExtensibleTokenException(int tokType) {
this.tokType = tokType;
}
/**
* Returns the type of token in the byte subarrary.
*/
public int getTokenType() {
return tokType;
}
}