|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xerces.framework.XMLParser
org.apache.xerces.parsers.DOMParser
com.irisel.util.DOMParserSaveEncoding
public class DOMParserSaveEncoding
The DOMParserSaveEncoding class extends DOMParser.It also provides the Java Encoding of the XML document by overriding the startDocument method and providing a way to capture the MIME encoding from the XML document which in turn is converted to the Java Encoding by the internal MIME2Java class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.xerces.readers.XMLEntityHandler |
---|
org.apache.xerces.readers.XMLEntityHandler.CharBuffer, org.apache.xerces.readers.XMLEntityHandler.EntityReader |
Field Summary |
---|
Fields inherited from class org.apache.xerces.parsers.DOMParser |
---|
DEFAULT_DOCUMENT_CLASS_NAME |
Fields inherited from interface org.apache.xerces.framework.XMLErrorReporter |
---|
ERRORTYPE_FATAL_ERROR, ERRORTYPE_RECOVERABLE_ERROR, ERRORTYPE_WARNING |
Fields inherited from interface org.apache.xerces.readers.XMLEntityHandler |
---|
ATTVALUE_RESULT_COMPLEX, ATTVALUE_RESULT_INVALID_CHAR, ATTVALUE_RESULT_LESSTHAN, CHARREF_RESULT_INVALID_CHAR, CHARREF_RESULT_OUT_OF_RANGE, CHARREF_RESULT_SEMICOLON_REQUIRED, CONTENT_RESULT_END_OF_CDSECT, CONTENT_RESULT_INVALID_CHAR, CONTENT_RESULT_MARKUP_END_OF_INPUT, CONTENT_RESULT_MARKUP_NOT_RECOGNIZED, CONTENT_RESULT_MATCHING_ETAG, CONTENT_RESULT_REFERENCE_END_OF_INPUT, CONTENT_RESULT_START_OF_CDSECT, CONTENT_RESULT_START_OF_CHARREF, CONTENT_RESULT_START_OF_COMMENT, CONTENT_RESULT_START_OF_ELEMENT, CONTENT_RESULT_START_OF_ENTITYREF, CONTENT_RESULT_START_OF_ETAG, CONTENT_RESULT_START_OF_PI, CONTEXT_DOCUMENT, CONTEXT_EXTERNAL_SUBSET, CONTEXT_IN_ATTVALUE, CONTEXT_IN_CONTENT, CONTEXT_IN_DEFAULTATTVALUE, CONTEXT_IN_DTD_AS_MARKUP, CONTEXT_IN_DTD_WITHIN_MARKUP, CONTEXT_IN_ENTITYVALUE, ENTITYTYPE_DOCUMENT, ENTITYTYPE_EXTERNAL, ENTITYTYPE_EXTERNAL_PE, ENTITYTYPE_EXTERNAL_SUBSET, ENTITYTYPE_INTERNAL, ENTITYTYPE_INTERNAL_PE, ENTITYTYPE_UNPARSED, ENTITYVALUE_RESULT_END_OF_INPUT, ENTITYVALUE_RESULT_FINISHED, ENTITYVALUE_RESULT_INVALID_CHAR, ENTITYVALUE_RESULT_PEREF, ENTITYVALUE_RESULT_REFERENCE, STRINGLIT_RESULT_INVALID_CHAR, STRINGLIT_RESULT_QUOTE_REQUIRED |
Constructor Summary | |
---|---|
DOMParserSaveEncoding()
|
Method Summary | |
---|---|
java.lang.String |
getJavaEncoding()
|
void |
startDocument(int versionIndex,
int encodingIndex,
int standAloneIndex)
|
Methods inherited from class org.apache.xerces.parsers.DOMParser |
---|
attlistDecl, characters, characters, comment, elementDecl, endCDATA, endDocument, endDTD, endElement, endEntityReference, endNamespaceDeclScope, externalEntityDecl, externalPEDecl, getCreateEntityReferenceNodes, getDocument, getFeature, getFeaturesRecognized, getIncludeIgnorableWhitespace, getPropertiesRecognized, getProperty, ignorableWhitespace, ignorableWhitespace, internalEntityDecl, internalPEDecl, internalSubset, notationDecl, processingInstruction, reset, resetOrCopy, setFeature, setIncludeIgnorableWhitespace, setProperty, startCDATA, startDTD, startElement, startEntityReference, startNamespaceDeclScope, unparsedEntityDecl |
Methods inherited from class org.apache.xerces.framework.XMLParser |
---|
addRecognizer, callCharacters, callComment, callEndDocument, callEndElement, callProcessingInstruction, callStartDocument, callStartElement, changeReaders, commentInDTD, endEntityDecl, expandSystemId, getColumnNumber, getEntityReader, getEntityResolver, getErrorHandler, getLineNumber, getLocator, getPublicId, getReaderDepth, getReaderId, getSystemId, isFeatureRecognized, isPropertyRecognized, parse, parse, parseSome, parseSomeSetup, processCharacters, processCharacters, processingInstructionInDTD, processWhitespace, processWhitespace, reportError, scanAttributeName, scanAttValue, scanDoctypeDecl, scanElementType, scanExpectedElementType, setEntityResolver, setErrorHandler, setLocale, setLocator, setReaderDepth, setReaderFactory, setValidating, startEntityDecl, startReadingFromDocument, startReadingFromEntity, startReadingFromExternalSubset, stopReadingFromExternalSubset, validEncName, validVersionNum |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMParserSaveEncoding()
Method Detail |
---|
public java.lang.String getJavaEncoding()
public void startDocument(int versionIndex, int encodingIndex, int standAloneIndex)
startDocument
in class org.apache.xerces.parsers.DOMParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |