1 57 58 package org.enhydra.apache.xerces.readers; 59 60 import java.io.InputStream ; 61 import java.io.Reader ; 62 63 import org.enhydra.apache.xerces.framework.XMLErrorReporter; 64 import org.enhydra.apache.xerces.utils.StringPool; 65 import org.xml.sax.InputSource ; 66 67 72 public interface XMLEntityReaderFactory { 73 78 public void addRecognizer(XMLDeclRecognizer recognizer); 79 80 83 public void setSendCharDataAsCharArray(boolean flag); 84 85 88 public void setAllowJavaEncodingName(boolean flag); 89 90 93 public boolean getAllowJavaEncodingName(); 94 95 106 public XMLEntityHandler.EntityReader createReader(XMLEntityHandler entityHandler, 107 XMLErrorReporter errorReporter, 108 InputSource source, 109 String systemId, 110 boolean xmlDecl, 111 StringPool stringPool) throws Exception ; 112 113 125 public XMLEntityHandler.EntityReader createCharReader(XMLEntityHandler entityHandler, 126 XMLErrorReporter errorReporter, 127 boolean sendCharDataAsCharArray, 128 Reader reader, 129 StringPool stringPool) throws Exception ; 130 131 143 public XMLEntityHandler.EntityReader createUTF8Reader(XMLEntityHandler entityHandler, 144 XMLErrorReporter errorReporter, 145 boolean sendCharDataAsCharArray, 146 InputStream data, 147 StringPool stringPool) throws Exception ; 148 149 166 public XMLEntityHandler.EntityReader createStringReader(XMLEntityHandler entityHandler, 167 XMLErrorReporter errorReporter, 168 boolean sendCharDataAsCharArray, 169 int lineNumber, 170 int columnNumber, 171 int stringHandle, 172 StringPool stringPool, 173 boolean addEnclosingSpaces) throws Exception ; 174 } 175 | Popular Tags |