|
|||||||||
Home >> All >> org >> apache >> xerces >> [ readers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
org.apache.xerces.readers
Class DefaultEntityHandler.NullReader

java.lang.Objectorg.apache.xerces.readers.DefaultEntityHandler.NullReader
- All Implemented Interfaces:
- XMLEntityHandler.EntityReader
- Enclosing class:
- DefaultEntityHandler
- private final class DefaultEntityHandler.NullReader
- extends java.lang.Object
- implements XMLEntityHandler.EntityReader
- extends java.lang.Object
Constructor Summary | |
DefaultEntityHandler.NullReader()
|
Method Summary | |
int |
addString(int offset,
int length)
Add a string to the StringPool from the characters scanned using this
reader as described by offset and length . |
int |
addSymbol(int offset,
int length)
Add a symbol to the StringPool from the characters scanned using this
reader as described by offset and length . |
void |
append(XMLEntityHandler.CharBuffer charBuffer,
int offset,
int length)
Append the characters processed by this reader associated with offset and
length to the CharBuffer . |
int |
currentOffset()
Return the current offset within this reader. |
int |
getColumnNumber()
Return the column number of the current position within the document that we are processing. |
boolean |
getInCDSect()
This method is provided for scanner implementations. |
int |
getLineNumber()
Return the line number of the current position within the document that we are processing. |
boolean |
lookingAtChar(char ch,
boolean skipPastChar)
Test that the current character is a ch character. |
boolean |
lookingAtSpace(boolean skipPastChar)
Test that the current character is a whitespace character. |
boolean |
lookingAtValidChar(boolean skipPastChar)
Test that the current character is valid. |
int |
scanAttValue(char qchar,
boolean asSymbol)
Scan an attribute value. |
int |
scanCharRef(boolean hex)
Scan a character reference. |
int |
scanContent(org.apache.xerces.utils.QName element)
Skip through the input while we are looking at character data. |
int |
scanEntityValue(int qchar,
boolean createString)
Scan an entity value. |
boolean |
scanExpectedName(char fastcheck,
org.apache.xerces.utils.StringPool.CharArrayRange expectedName)
Scan the name that is expected at the current position in the document. |
int |
scanInvalidChar()
Scan an invalid character. |
int |
scanName(char fastcheck)
Add a sequence of characters that match the XML definition of a Name to the StringPool . |
void |
scanQName(char fastcheck,
org.apache.xerces.utils.QName qname)
Add a sequence of characters that match the XML Namespaces definition of a QName to the StringPool . |
int |
scanStringLiteral()
Scan a string literal. |
void |
setInCDSect(boolean inCDSect)
This method is provided for scanner implementations. |
void |
skipPastName(char fastcheck)
Skip past a sequence of characters that match the XML definition of a Name. |
void |
skipPastNmtoken(char fastcheck)
Skip past a sequence of characters that match the XML definition of an Nmtoken. |
void |
skipPastSpaces()
Skip past whitespace characters starting at the current position. |
boolean |
skippedString(char[] s)
Skip past a sequence of characters that matches the specified character array. |
void |
skipToChar(char ch)
Advance through the input data up to the next ch character. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
DefaultEntityHandler.NullReader
public DefaultEntityHandler.NullReader()
Method Detail |
currentOffset
public int currentOffset()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Return the current offset within this reader.
- Specified by:
currentOffset
in interfaceXMLEntityHandler.EntityReader
getLineNumber
public int getLineNumber()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Return the line number of the current position within the document that we are processing.
- Specified by:
getLineNumber
in interfaceXMLEntityHandler.EntityReader
getColumnNumber
public int getColumnNumber()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Return the column number of the current position within the document that we are processing.
- Specified by:
getColumnNumber
in interfaceXMLEntityHandler.EntityReader
setInCDSect
public void setInCDSect(boolean inCDSect)
- Description copied from interface:
XMLEntityHandler.EntityReader
- This method is provided for scanner implementations.
- Specified by:
setInCDSect
in interfaceXMLEntityHandler.EntityReader
getInCDSect
public boolean getInCDSect()
- Description copied from interface:
XMLEntityHandler.EntityReader
- This method is provided for scanner implementations.
- Specified by:
getInCDSect
in interfaceXMLEntityHandler.EntityReader
append
public void append(XMLEntityHandler.CharBuffer charBuffer, int offset, int length)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Append the characters processed by this reader associated with
offset
andlength
to theCharBuffer
.- Specified by:
append
in interfaceXMLEntityHandler.EntityReader
addString
public int addString(int offset, int length)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Add a string to the
StringPool
from the characters scanned using this reader as described byoffset
andlength
.- Specified by:
addString
in interfaceXMLEntityHandler.EntityReader
addSymbol
public int addSymbol(int offset, int length)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Add a symbol to the
StringPool
from the characters scanned using this reader as described byoffset
andlength
.- Specified by:
addSymbol
in interfaceXMLEntityHandler.EntityReader
lookingAtChar
public boolean lookingAtChar(char ch, boolean skipPastChar)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Test that the current character is a
ch
character.- Specified by:
lookingAtChar
in interfaceXMLEntityHandler.EntityReader
lookingAtValidChar
public boolean lookingAtValidChar(boolean skipPastChar)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Test that the current character is valid.
- Specified by:
lookingAtValidChar
in interfaceXMLEntityHandler.EntityReader
lookingAtSpace
public boolean lookingAtSpace(boolean skipPastChar)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Test that the current character is a whitespace character.
- Specified by:
lookingAtSpace
in interfaceXMLEntityHandler.EntityReader
skipToChar
public void skipToChar(char ch)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Advance through the input data up to the next
ch
character.- Specified by:
skipToChar
in interfaceXMLEntityHandler.EntityReader
skipPastSpaces
public void skipPastSpaces()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Skip past whitespace characters starting at the current position.
- Specified by:
skipPastSpaces
in interfaceXMLEntityHandler.EntityReader
skipPastName
public void skipPastName(char fastcheck)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Skip past a sequence of characters that match the XML definition of a Name.
- Specified by:
skipPastName
in interfaceXMLEntityHandler.EntityReader
skipPastNmtoken
public void skipPastNmtoken(char fastcheck)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Skip past a sequence of characters that match the XML definition of an Nmtoken.
- Specified by:
skipPastNmtoken
in interfaceXMLEntityHandler.EntityReader
skippedString
public boolean skippedString(char[] s)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Skip past a sequence of characters that matches the specified character array.
- Specified by:
skippedString
in interfaceXMLEntityHandler.EntityReader
scanInvalidChar
public int scanInvalidChar()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan an invalid character.
- Specified by:
scanInvalidChar
in interfaceXMLEntityHandler.EntityReader
scanCharRef
public int scanCharRef(boolean hex)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan a character reference.
- Specified by:
scanCharRef
in interfaceXMLEntityHandler.EntityReader
scanStringLiteral
public int scanStringLiteral()
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan a string literal.
- Specified by:
scanStringLiteral
in interfaceXMLEntityHandler.EntityReader
scanAttValue
public int scanAttValue(char qchar, boolean asSymbol)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan an attribute value.
- Specified by:
scanAttValue
in interfaceXMLEntityHandler.EntityReader
scanEntityValue
public int scanEntityValue(int qchar, boolean createString)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan an entity value.
- Specified by:
scanEntityValue
in interfaceXMLEntityHandler.EntityReader
scanExpectedName
public boolean scanExpectedName(char fastcheck, org.apache.xerces.utils.StringPool.CharArrayRange expectedName)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Scan the name that is expected at the current position in the document.
This method is invoked when we are scanning the element type in an end tag
that must match the element type in the corresponding start tag.
- Specified by:
scanExpectedName
in interfaceXMLEntityHandler.EntityReader
scanQName
public void scanQName(char fastcheck, org.apache.xerces.utils.QName qname)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Add a sequence of characters that match the XML Namespaces definition of a QName
to the
StringPool
. If we find a QName at the current position we will add it to theStringPool
and will return the string pool handle of that QName to the caller.- Specified by:
scanQName
in interfaceXMLEntityHandler.EntityReader
scanName
public int scanName(char fastcheck)
- Description copied from interface:
XMLEntityHandler.EntityReader
- Add a sequence of characters that match the XML definition of a Name to the
StringPool
. If we find a name at the current position we will add it to theStringPool
as a symbol and will return the string pool handle for that symbol to the caller.- Specified by:
scanName
in interfaceXMLEntityHandler.EntityReader
scanContent
public int scanContent(org.apache.xerces.utils.QName element) throws java.lang.Exception
- Description copied from interface:
XMLEntityHandler.EntityReader
- Skip through the input while we are looking at character data.
- Specified by:
scanContent
in interfaceXMLEntityHandler.EntityReader
|
|||||||||
Home >> All >> org >> apache >> xerces >> [ readers overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |