| java.lang.Object org.apache.xerces.readers.XMLEntityReader org.apache.xerces.readers.StringReader
StringReader | final class StringReader extends XMLEntityReader (Code) | | Reader for processing internal entity replacement text.
This reader processes data contained within strings kept
in the string pool. It provides the support for both
general and parameter entities. The location support
as we are processing the replacement text is somewhat
poor and needs to be updated when "nested locations"
have been implemented.
For efficiency, we return instances of this class to a
free list and reuse those instances to process other
strings.
version: $id$ |
Method Summary | |
public int | addString(int offset, int length) | public int | addSymbol(int offset, int length) | public void | append(XMLEntityHandler.CharBuffer charBuffer, int offset, int length) | public XMLEntityHandler.EntityReader | changeReaders() | public static StringReader | createStringReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber, int stringHandle, StringPool stringPool, boolean addEnclosingSpaces) Allocate a string reader
Parameters: entityHandler - The current entity handler. Parameters: errorReporter - The current error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: lineNumber - The line number to return as our position. Parameters: columnNumber - The column number to return as our position. Parameters: stringHandle - The StringPool handle for the data to process. Parameters: stringPool - The string pool. Parameters: addEnclosingSpaces - If true, treat the data to process as ifthere were a leading and trailing spacecharacter enclosing the string data. | public boolean | lookingAtChar(char chr, boolean skipPastChar) | public boolean | lookingAtSpace(boolean skipPastChar) | public boolean | lookingAtValidChar(boolean skipPastChar) | public int | scanAttValue(char qchar, boolean asSymbol) | public int | scanCharRef(boolean hex) | public int | scanContent(QName element) | public int | scanEntityValue(int qchar, boolean createString) | public boolean | scanExpectedName(char fastcheck, StringPool.CharArrayRange expectedName) | public int | scanInvalidChar() | public int | scanName(char fastcheck) | public void | scanQName(char fastcheck, QName qname) | public int | scanStringLiteral() | public void | skipPastName(char fastcheck) | public void | skipPastNmtoken(char fastcheck) | public void | skipPastSpaces() | public void | skipToChar(char chr) | public boolean | skippedString(char[] s) |
fgAsciiEntityValueChar | final public static byte fgAsciiEntityValueChar(Code) | | |
addString | public int addString(int offset, int length)(Code) | | |
addSymbol | public int addSymbol(int offset, int length)(Code) | | |
createStringReader | public static StringReader createStringReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber, int stringHandle, StringPool stringPool, boolean addEnclosingSpaces)(Code) | | Allocate a string reader
Parameters: entityHandler - The current entity handler. Parameters: errorReporter - The current error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: lineNumber - The line number to return as our position. Parameters: columnNumber - The column number to return as our position. Parameters: stringHandle - The StringPool handle for the data to process. Parameters: stringPool - The string pool. Parameters: addEnclosingSpaces - If true, treat the data to process as ifthere were a leading and trailing spacecharacter enclosing the string data. The reader that will process the string data. |
lookingAtChar | public boolean lookingAtChar(char chr, boolean skipPastChar) throws Exception(Code) | | |
lookingAtSpace | public boolean lookingAtSpace(boolean skipPastChar) throws Exception(Code) | | |
lookingAtValidChar | public boolean lookingAtValidChar(boolean skipPastChar) throws Exception(Code) | | |
scanAttValue | public int scanAttValue(char qchar, boolean asSymbol) throws Exception(Code) | | |
scanEntityValue | public int scanEntityValue(int qchar, boolean createString) throws Exception(Code) | | |
skipPastName | public void skipPastName(char fastcheck) throws Exception(Code) | | |
skipPastNmtoken | public void skipPastNmtoken(char fastcheck) throws Exception(Code) | | |
|
|