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

Quick Search    Search Deep

org.apache.xerces.readers
Class DefaultReaderFactory  view DefaultReaderFactory download DefaultReaderFactory.java

java.lang.Object
  extended byorg.apache.xerces.readers.DefaultReaderFactory
All Implemented Interfaces:
XMLEntityReaderFactory

public class DefaultReaderFactory
extends java.lang.Object
implements XMLEntityReaderFactory


Field Summary
private  boolean fAllowJavaEncodingName
           
private  java.util.Stack fRecognizers
           
private  boolean fSendCharDataAsCharArray
           
private static boolean USE_BYTE_READER_FOR_UTF8
           
private static boolean USE_CHAR_READER_FOR_UTF8
           
 
Constructor Summary
DefaultReaderFactory()
          Constructor
 
Method Summary
 void addRecognizer(XMLDeclRecognizer recognizer)
          Adds a recognizer.
 XMLEntityHandler.EntityReader createCharReader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, java.io.Reader reader, org.apache.xerces.utils.StringPool stringPool)
          Create an entity reader for a character stream.
 XMLEntityHandler.EntityReader createReader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, org.xml.sax.InputSource source, java.lang.String systemId, boolean xmlDecl, org.apache.xerces.utils.StringPool stringPool)
          Create a reader
 XMLEntityHandler.EntityReader createStringReader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, int lineNumber, int columnNumber, int stringHandle, org.apache.xerces.utils.StringPool stringPool, boolean addEnclosingSpaces)
          Create an entity reader for data from a String.
 XMLEntityHandler.EntityReader createUTF8Reader(XMLEntityHandler entityHandler, org.apache.xerces.framework.XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, java.io.InputStream data, org.apache.xerces.utils.StringPool stringPool)
          Create an entity reader for a byte stream encoded in UTF-8.
 boolean getAllowJavaEncodingName()
           
 void setAllowJavaEncodingName(boolean flag)
           
 void setSendCharDataAsCharArray(boolean flag)
          Set char data processing preference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USE_CHAR_READER_FOR_UTF8

private static final boolean USE_CHAR_READER_FOR_UTF8
See Also:
Constant Field Values

USE_BYTE_READER_FOR_UTF8

private static final boolean USE_BYTE_READER_FOR_UTF8
See Also:
Constant Field Values

fSendCharDataAsCharArray

private boolean fSendCharDataAsCharArray

fAllowJavaEncodingName

private boolean fAllowJavaEncodingName

fRecognizers

private java.util.Stack fRecognizers
Constructor Detail

DefaultReaderFactory

public DefaultReaderFactory()
Constructor

Method Detail

addRecognizer

public void addRecognizer(XMLDeclRecognizer recognizer)
Adds a recognizer.

Specified by:
addRecognizer in interface XMLEntityReaderFactory

setSendCharDataAsCharArray

public void setSendCharDataAsCharArray(boolean flag)
Set char data processing preference.

Specified by:
setSendCharDataAsCharArray in interface XMLEntityReaderFactory

setAllowJavaEncodingName

public void setAllowJavaEncodingName(boolean flag)
Specified by:
setAllowJavaEncodingName in interface XMLEntityReaderFactory

getAllowJavaEncodingName

public boolean getAllowJavaEncodingName()
Specified by:
getAllowJavaEncodingName in interface XMLEntityReaderFactory

createReader

public XMLEntityHandler.EntityReader createReader(XMLEntityHandler entityHandler,
                                                  org.apache.xerces.framework.XMLErrorReporter errorReporter,
                                                  org.xml.sax.InputSource source,
                                                  java.lang.String systemId,
                                                  boolean xmlDecl,
                                                  org.apache.xerces.utils.StringPool stringPool)
                                           throws java.lang.Exception
Create a reader

Specified by:
createReader in interface XMLEntityReaderFactory

createCharReader

public XMLEntityHandler.EntityReader createCharReader(XMLEntityHandler entityHandler,
                                                      org.apache.xerces.framework.XMLErrorReporter errorReporter,
                                                      boolean sendCharDataAsCharArray,
                                                      java.io.Reader reader,
                                                      org.apache.xerces.utils.StringPool stringPool)
                                               throws java.lang.Exception
Create an entity reader for a character stream.

Specified by:
createCharReader in interface XMLEntityReaderFactory

createUTF8Reader

public XMLEntityHandler.EntityReader createUTF8Reader(XMLEntityHandler entityHandler,
                                                      org.apache.xerces.framework.XMLErrorReporter errorReporter,
                                                      boolean sendCharDataAsCharArray,
                                                      java.io.InputStream data,
                                                      org.apache.xerces.utils.StringPool stringPool)
                                               throws java.lang.Exception
Create an entity reader for a byte stream encoded in UTF-8.

Specified by:
createUTF8Reader in interface XMLEntityReaderFactory

createStringReader

public XMLEntityHandler.EntityReader createStringReader(XMLEntityHandler entityHandler,
                                                        org.apache.xerces.framework.XMLErrorReporter errorReporter,
                                                        boolean sendCharDataAsCharArray,
                                                        int lineNumber,
                                                        int columnNumber,
                                                        int stringHandle,
                                                        org.apache.xerces.utils.StringPool stringPool,
                                                        boolean addEnclosingSpaces)
                                                 throws java.lang.Exception
Create an entity reader for data from a String.

Specified by:
createStringReader in interface XMLEntityReaderFactory