Top Description Inners Fields Constructors Methods
com.sun.xml.fastinfoset.sax

public Class SAXDocumentParser

extends Decoder
implements FastInfosetReader
Class Inheritance
All Implemented Interfaces
org.jvnet.fastinfoset.sax.FastInfosetReader, org.jvnet.fastinfoset.FastInfosetParser, org.xml.sax.XMLReader
Imports
com.sun.xml.fastinfoset.Decoder, .DecoderStateTables, .EncodingConstants, .QualifiedName, .CommonResourceBundle, com.sun.xml.fastinfoset.algorithm.BuiltInEncodingAlgorithmFactory, .BuiltInEncodingAlgorithmState, org.jvnet.fastinfoset.FastInfosetParser, .EncodingAlgorithm, .EncodingAlgorithmException, .EncodingAlgorithmIndexes, .FastInfosetException, org.jvnet.fastinfoset.sax.EncodingAlgorithmContentHandler, .FastInfosetReader, .PrimitiveTypeContentHandler, com.sun.xml.fastinfoset.util.CharArray, .CharArrayString, .DuplicateAttributeVerifier, java.io.IOException, .InputStream, java.net.URI, .URISyntaxException, java.util.Map, org.xml.sax.ContentHandler, .DTDHandler, .EntityResolver, .ErrorHandler, .InputSource, .SAXException, .SAXNotRecognizedException, .SAXNotSupportedException, .SAXParseException, org.xml.sax.ext.LexicalHandler, .DeclHandler, org.xml.sax.helpers.DefaultHandler, com.sun.xml.fastinfoset.vocab.ParserVocabulary, java.util.logging.Level, .Logger

The Fast Infoset SAX parser.

Instantiate this parser to parse a fast infoset document in accordance with the SAX API.

More than one fast infoset document may be decoded from the java.io.InputStream.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
protected EncodingAlgorithmContentHandler
protected AttributesHolder
protected boolean
protected ContentHandler
_contentHandler

Reference to content handler.

protected DeclHandler
_declHandler

Reference to DTD declaration handler.

protected DTDHandler
_dtdHandler

Reference to dtd handler.

protected EntityResolver
_entityResolver

Reference to entity resolver.

protected ErrorHandler
_errorHandler

Reference to error handler.

protected LexicalHandler
_lexicalHandler

Reference to lexical handler.

protected int[]
protected boolean
_namespacePrefixesFeature

SAX Namespace attributes features

protected int
protected PrimitiveTypeContentHandler
protected BuiltInEncodingAlgorithmState
private static final Logger
Inherited from com.sun.xml.fastinfoset.Decoder:
_addToTable_attributeNameTable_attributeValueTable_b_bufferSize_characterContentChunkTable_charBuffer_charBufferLength_doubleTerminate_duplicateAttributeVerifier_elementNameTable_identifier_integer_namespaceNameIndex_needForceStreamClose_notations_octetBuffer_octetBufferEnd_octetBufferLength_octetBufferOffset_octetBufferStart_parseFragments_prefixIndex_prefixTable_registeredEncodingAlgorithms_terminate_unparsedEntities_vBUFFER_SIZE_SYSTEM_PROPERTYNISTRING_EMPTY_STRINGNISTRING_ENCODING_ALGORITHMNISTRING_INDEXNISTRING_STRINGSTRING_INTERNING_SYSTEM_PROPERTY

Constructor Summary

AccessConstructor and Description
public
SAXDocumentParser()

Creates a new instance of DocumetParser2

Method Summary

Modifier and TypeMethod and Description
public ContentHandler
getContentHandler()

Implements org.xml.sax.XMLReader.getContentHandler.

Return the current content handler.

public DeclHandler
getDeclHandler()

Implements org.jvnet.fastinfoset.sax.FastInfosetReader.getDeclHandler.

Return the current DTD declaration handler.

public DTDHandler
getDTDHandler()

Implements org.xml.sax.XMLReader.getDTDHandler.

Return the current DTD handler.

public EncodingAlgorithmContentHandler
public EntityResolver
getEntityResolver()

Implements org.xml.sax.XMLReader.getEntityResolver.

Return the current entity resolver.

public ErrorHandler
getErrorHandler()

Implements org.xml.sax.XMLReader.getErrorHandler.

Return the current error handler.

public boolean
getFeature(String name)

Implements org.xml.sax.XMLReader.getFeature.

Look up the value of a feature flag.

public LexicalHandler
public PrimitiveTypeContentHandler
public Object
getProperty(String name)

Implements org.xml.sax.XMLReader.getProperty.

Look up the value of a property.

public void
parse(InputSource input)

Implements org.xml.sax.XMLReader.parse.

Parse an XML document.

public void
parse(String systemId)

Implements org.xml.sax.XMLReader.parse.

Parse an XML document from a system identifier (URI).

public final void
parse(InputStream s)

Implements org.jvnet.fastinfoset.sax.FastInfosetReader.parse.

Parse a fast infoset document from an InputStream.

public final void
protected final void
processAIIEncodingAlgorithm(QualifiedName name, boolean addToTable)

protected final void
protected final void
protected final void
protected final Object
protected final void
protected final void
processCIIEncodingAlgorithm(boolean addToTable)

protected final void
protected final void
protected final void
protected final void
protected final void
processEII(QualifiedName name, boolean hasAttributes)

protected final void
protected final void
private void
protected void
public void
setContentHandler(ContentHandler handler)

Implements org.xml.sax.XMLReader.setContentHandler.

Allow an application to register a content event handler.

public void
setDeclHandler(DeclHandler handler)

Implements org.jvnet.fastinfoset.sax.FastInfosetReader.setDeclHandler.

Allow an application to register a DTD declaration handler.

public void
setDTDHandler(DTDHandler handler)

Implements org.xml.sax.XMLReader.setDTDHandler.

Allow an application to register a DTD event handler.

public void
public void
setEntityResolver(EntityResolver resolver)

Implements org.xml.sax.XMLReader.setEntityResolver.

Allow an application to register an entity resolver.

public void
setErrorHandler(ErrorHandler handler)

Implements org.xml.sax.XMLReader.setErrorHandler.

Allow an application to register an error event handler.

public void
setFeature(String name, boolean value)

Implements org.xml.sax.XMLReader.setFeature.

Set the value of a feature flag.

public void
setLexicalHandler(LexicalHandler handler)

Implements org.jvnet.fastinfoset.sax.FastInfosetReader.setLexicalHandler.

Allow an application to register a lexical handler.

public void
public void
setProperty(String name, Object value)

Implements org.xml.sax.XMLReader.setProperty.

Set the value of a property.

Inherited from com.sun.xml.fastinfoset.Decoder:
_isFastInfosetDocumentcloseIfRequiredcreateQualifiedNameStringcreateQualifiedNameStringdecodeAdditionalDatadecodeAlphabetOctetsAsCharBufferdecodeCharacterEncodingSchemedecodeDIIdecodeEIIIndexLargedecodeEIIIndexMediumdecodeFourBitAlphabetOctetsAsCharBufferdecodeHeaderdecodeIdentifyingNonEmptyStringIndexOnFirstBitAsNamespaceNamedecodeIdentifyingNonEmptyStringIndexOnFirstBitAsPrefixdecodeIdentifyingNonEmptyStringOnFirstBitdecodeIdentifyingNonEmptyStringOnFirstBitAsNamespaceNamedecodeIdentifyingNonEmptyStringOnFirstBitAsPrefixdecodeInitialVocabularydecodeIntegerIndexOnSecondBitdecodeLiteralQualifiedNamedecodeNonEmptyOctetStringLengthOnSecondBitdecodeNonEmptyOctetStringOnSecondBitAsUtf8CharArraydecodeNonEmptyOctetStringOnSecondBitAsUtf8StringdecodeNonIdentifyingStringOnFirstBitdecodeNotationsdecodeOctetsOnFifthBitOfNonIdentifyingStringOnFirstBitdecodeOctetsOnSeventhBitOfNonIdentifyingStringOnThirdBitdecodeRAOctetsAsStringdecodeRestrictedAlphabetAsCharBufferdecodeRestrictedAlphabetAsStringdecodeUnparsedEntitiesdecodeUtf16StringAsCharBufferdecodeUtf16StringAsStringdecodeUtf8NCNameIntoCharBufferdecodeUtf8StringAsCharBufferdecodeUtf8StringAsCharBufferdecodeUtf8StringAsStringdecodeUtf8StringIntoCharBufferdecodeUtf8StringIntoCharBufferdecodeVersiongetBufferSizegetExternalVocabulariesgetForceStreamClosegetParseFragmentsgetRegisteredEncodingAlgorithmsgetStringInterningisFastInfosetDocumentpeekpeekpeek2readresetsetBufferSizesetExternalVocabulariessetForceStreamClosesetInputStreamsetParseFragmentssetRegisteredEncodingAlgorithmssetStringInterningsetVocabulary