| org.apache.xerces.readers.XMLEntityReaderFactory
All known Subclasses: org.apache.xerces.readers.DefaultReaderFactory,
XMLEntityReaderFactory | public interface XMLEntityReaderFactory (Code) | | This is the factory interface used to create readers.
|
Method Summary | |
public void | addRecognizer(XMLDeclRecognizer recognizer) Adds a recognizer. | public XMLEntityHandler.EntityReader | createCharReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, Reader reader, StringPool stringPool) Create an entity reader for a character stream.
Parameters: enityHandler - The entity handler. Parameters: errorReporter - The error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: reader - The character stream. Parameters: stringPool - The string pool. | public XMLEntityHandler.EntityReader | createReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, InputSource source, String systemId, boolean xmlDecl, StringPool stringPool) Create an entity reader for the source.
Parameters: source - The input source. Parameters: systemId - The system identifier for the input. Parameters: xmlDecl - true if an XMLDecl may be present; otherwisefalse if a TextDecl may be present. Parameters: stringPool - The string pool. | public XMLEntityHandler.EntityReader | createStringReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber, int stringHandle, StringPool stringPool, boolean addEnclosingSpaces) Create an entity reader for data from a String.
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 XMLEntityHandler.EntityReader | createUTF8Reader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, InputStream data, StringPool stringPool) Create an entity reader for a byte stream encoded in UTF-8.
Parameters: enityHandler - The entity handler. Parameters: errorReporter - The error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: data - The byte stream. Parameters: stringPool - The string pool. | public boolean | getAllowJavaEncodingName() | public void | setAllowJavaEncodingName(boolean flag) | public void | setSendCharDataAsCharArray(boolean flag) Set char data processing preference. |
addRecognizer | public void addRecognizer(XMLDeclRecognizer recognizer)(Code) | | Adds a recognizer.
Parameters: recognizer - The XML recognizer to add. |
createCharReader | public XMLEntityHandler.EntityReader createCharReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, Reader reader, StringPool stringPool) throws Exception(Code) | | Create an entity reader for a character stream.
Parameters: enityHandler - The entity handler. Parameters: errorReporter - The error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: reader - The character stream. Parameters: stringPool - The string pool. The reader that will process the character data. exception: java.lang.Exception - |
createStringReader | public XMLEntityHandler.EntityReader createStringReader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber, int stringHandle, StringPool stringPool, boolean addEnclosingSpaces) throws Exception(Code) | | Create an entity reader for data from a String.
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. exception: java.lang.Exception - |
createUTF8Reader | public XMLEntityHandler.EntityReader createUTF8Reader(XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, InputStream data, StringPool stringPool) throws Exception(Code) | | Create an entity reader for a byte stream encoded in UTF-8.
Parameters: enityHandler - The entity handler. Parameters: errorReporter - The error reporter. Parameters: sendCharDataAsCharArray - true if char data should be reported usingchar arrays instead of string handles. Parameters: data - The byte stream. Parameters: stringPool - The string pool. The reader that will process the UTF-8 data. exception: java.lang.Exception - |
getAllowJavaEncodingName | public boolean getAllowJavaEncodingName()(Code) | | |
setAllowJavaEncodingName | public void setAllowJavaEncodingName(boolean flag)(Code) | | |
setSendCharDataAsCharArray | public void setSendCharDataAsCharArray(boolean flag)(Code) | | Set char data processing preference.
|
|
|