Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xerces.readers
Class DefaultEntityHandler.NullReader  view DefaultEntityHandler.NullReader download DefaultEntityHandler.NullReader.java

java.lang.Object
  extended byorg.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


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 interface XMLEntityHandler.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 interface XMLEntityHandler.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 interface XMLEntityHandler.EntityReader

setInCDSect

public void setInCDSect(boolean inCDSect)
Description copied from interface: XMLEntityHandler.EntityReader
This method is provided for scanner implementations.

Specified by:
setInCDSect in interface XMLEntityHandler.EntityReader

getInCDSect

public boolean getInCDSect()
Description copied from interface: XMLEntityHandler.EntityReader
This method is provided for scanner implementations.

Specified by:
getInCDSect in interface XMLEntityHandler.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 and length to the CharBuffer.

Specified by:
append in interface XMLEntityHandler.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 by offset and length.

Specified by:
addString in interface XMLEntityHandler.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 by offset and length.

Specified by:
addSymbol in interface XMLEntityHandler.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 interface XMLEntityHandler.EntityReader

lookingAtValidChar

public boolean lookingAtValidChar(boolean skipPastChar)
Description copied from interface: XMLEntityHandler.EntityReader
Test that the current character is valid.

Specified by:
lookingAtValidChar in interface XMLEntityHandler.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 interface XMLEntityHandler.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 interface XMLEntityHandler.EntityReader

skipPastSpaces

public void skipPastSpaces()
Description copied from interface: XMLEntityHandler.EntityReader
Skip past whitespace characters starting at the current position.

Specified by:
skipPastSpaces in interface XMLEntityHandler.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 interface XMLEntityHandler.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 interface XMLEntityHandler.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 interface XMLEntityHandler.EntityReader

scanInvalidChar

public int scanInvalidChar()
Description copied from interface: XMLEntityHandler.EntityReader
Scan an invalid character.

Specified by:
scanInvalidChar in interface XMLEntityHandler.EntityReader

scanCharRef

public int scanCharRef(boolean hex)
Description copied from interface: XMLEntityHandler.EntityReader
Scan a character reference.

Specified by:
scanCharRef in interface XMLEntityHandler.EntityReader

scanStringLiteral

public int scanStringLiteral()
Description copied from interface: XMLEntityHandler.EntityReader
Scan a string literal.

Specified by:
scanStringLiteral in interface XMLEntityHandler.EntityReader

scanAttValue

public int scanAttValue(char qchar,
                        boolean asSymbol)
Description copied from interface: XMLEntityHandler.EntityReader
Scan an attribute value.

Specified by:
scanAttValue in interface XMLEntityHandler.EntityReader

scanEntityValue

public int scanEntityValue(int qchar,
                           boolean createString)
Description copied from interface: XMLEntityHandler.EntityReader
Scan an entity value.

Specified by:
scanEntityValue in interface XMLEntityHandler.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 interface XMLEntityHandler.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 the StringPool and will return the string pool handle of that QName to the caller.

Specified by:
scanQName in interface XMLEntityHandler.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 the StringPool as a symbol and will return the string pool handle for that symbol to the caller.

Specified by:
scanName in interface XMLEntityHandler.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 interface XMLEntityHandler.EntityReader