|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl
org.millscript.commons.xml.tokenizer.Xml10Tokenizer
public class Xml10Tokenizer
This class provides an XmlTokenizer implementation for
tokenizing an XML 1.0 document.
| Field Summary |
|---|
| Fields inherited from class org.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl |
|---|
columnNumber, lineNumber |
| Constructor Summary | |
|---|---|
Xml10Tokenizer(AbstractXmlTokenizerImpl a)
Constructs a new XML 1.0 tokenizer which will copy it's state from the specified existing tokenizer. |
|
Xml10Tokenizer(AbstractXmlTokenizerImpl a,
java.io.Reader r)
Constructs a new XML 1.0 tokenizer which will copy it's state from the specified existing tokenizer, but will use the specified reader instead of the one from the existing tokenizer. |
|
Xml10Tokenizer(java.io.InputStream is,
java.nio.charset.Charset cs,
boolean namespaceAware)
Constructs a new XML 1.0 tokenizer to read from the specified input stream, using the specified character set, with optional namespace support. |
|
Xml10Tokenizer(java.io.Reader r,
boolean namespaceAware)
Constructs a new XML 1.0 tokenizer to read from the specified reader, with optional namespace support. |
|
| Method Summary | |
|---|---|
int |
handleIntChar(int ch)
Handles the specified character, performing any XML version dependent line break conversions and checks on it's validity. |
boolean |
isChar(int ch)
Tests if the specified character matches the Char
production in the XML specification. |
boolean |
isNameChar(char ch)
Tests if the specified character matches the NameChar
production in the XML specification. |
boolean |
isNameStartChar(char ch)
Tests if the specified character matches the NameStartChar
production in the XML specification. |
| Methods inherited from class org.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl |
|---|
appendCurrentTokenData, dropS, getChar, getIntChar, getLineNumber, getQuoteChar, hasNextToken, isNCNameChar, isNCNameStartChar, isS, mustRead, mustReadEq, mustReadS, nextToken, peekRead, peekS, pushBack, pushBack, readAttlistDecl, readAttValue, readCDSect, readCharData, readComment, readDoctypeDecl, readElementDecl, readEncodingDecl, readEntityDecl, readETag, readIntSubset, readNmtoken, readNotationDecl, readPI, readPubidLiteral, readReference, readSDDecl, readSTag, readSystemLiteral, readVersionInfo, setNamespaces, tryRead, tryRead, tryReadS |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Xml10Tokenizer(java.io.InputStream is,
java.nio.charset.Charset cs,
boolean namespaceAware)
is - the InputStream to read fromcs - the Charset to decode the
InputStream withnamespaceAware - indicates if the tokenizer should be namespace
aware
public Xml10Tokenizer(java.io.Reader r,
boolean namespaceAware)
r - the Reader to obtain characters fromnamespaceAware - indicates if the tokenizer should be namespace
awarepublic Xml10Tokenizer(AbstractXmlTokenizerImpl a)
a - the existing tokenizer to copy state from
public Xml10Tokenizer(AbstractXmlTokenizerImpl a,
java.io.Reader r)
a - the existing tokenizer to copy state fromr - the new reader this tokenizer should read characters from| Method Detail |
|---|
public int handleIntChar(int ch)
AbstractXmlTokenizerImpl
handleIntChar in class AbstractXmlTokenizerImplch - the character to test
AbstractXmlTokenizerImpl.handleIntChar(int)public boolean isChar(int ch)
AbstractXmlTokenizerImplChar
production in the XML specification.
isChar in class AbstractXmlTokenizerImplch - the character to test
true if the character is a Char and
false otherwiseAbstractXmlTokenizerImpl.isChar(int)public boolean isNameChar(char ch)
AbstractXmlTokenizerImplNameChar
production in the XML specification.
isNameChar in class AbstractXmlTokenizerImplch - the character to test
true if the character is a NameChar
and false otherwiseAbstractXmlTokenizerImpl.isNameChar(char)public boolean isNameStartChar(char ch)
AbstractXmlTokenizerImplNameStartChar
production in the XML specification.
isNameStartChar in class AbstractXmlTokenizerImplch - the character to test
true if the character is a
NameStartChar and false otherwiseAbstractXmlTokenizerImpl.isNameStartChar(char)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||