org.enhydra.apache.xerces.readers
Class UTF8Recognizer

java.lang.Object
  |
  +--org.enhydra.apache.xerces.readers.XMLDeclRecognizer
        |
        +--org.enhydra.apache.xerces.readers.UTF8Recognizer

final class UTF8Recognizer
extends XMLDeclRecognizer

Version:
 

Inner Class Summary
(package private)  class UTF8Recognizer.XMLDeclReader
           
 
Constructor Summary
(package private) UTF8Recognizer()
           
 
Method Summary
 XMLEntityHandler.EntityReader recognize(XMLEntityReaderFactory readerFactory, XMLEntityHandler entityHandler, XMLErrorReporter errorReporter, boolean sendCharDataAsCharArray, StringPool stringPool, ChunkyByteArray data, boolean xmlDecl, boolean allowJavaEncodingName)
          Subclasses override this method to support recognizing their encodings.
 
Methods inherited from class org.enhydra.apache.xerces.readers.XMLDeclRecognizer
prescanXMLDeclOrTextDecl, registerDefaultRecognizers
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UTF8Recognizer

UTF8Recognizer()
Method Detail

recognize

public XMLEntityHandler.EntityReader recognize(XMLEntityReaderFactory readerFactory,
                                               XMLEntityHandler entityHandler,
                                               XMLErrorReporter errorReporter,
                                               boolean sendCharDataAsCharArray,
                                               StringPool stringPool,
                                               ChunkyByteArray data,
                                               boolean xmlDecl,
                                               boolean allowJavaEncodingName)
                                        throws Exception
Description copied from class: XMLDeclRecognizer
Subclasses override this method to support recognizing their encodings.
Overrides:
recognize in class XMLDeclRecognizer
Following copied from class: org.enhydra.apache.xerces.readers.XMLDeclRecognizer
Parameters:
readerFactory - the factory object to use when constructing the entity reader.
entityHandler - the entity handler to get entity readers from
errorReporter - where to report errors
sendCharDataAsCharArray - true if the reader should use char arrays, not string handles.
stringPool - the StringPool to put strings in
data - initial bytes to perform recognition on
xmlDecl - true if attempting to recognize fron an XMLDecl, false if trying to recognize from a TextDecl.
allowJavaEncodingName - true if Java's encoding names are allowed, false if they are not.
Returns:
The reader that will be used to process the contents of the data stream.
Throws:
Exception -  


Copyright © 1999 The Apache Software Foundation. All Rights reserved.