Class FastInfosetReaderSAXBufferCreator
- All Implemented Interfaces:
EncodingAlgorithmContentHandler, ContentHandler, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler
invalid reference
XMLStreamBuffer
FastInfosetReader.-
Field Summary
FieldsFields inherited from class com.sun.xml.stream.buffer.AbstractCreator
_bufferFields inherited from class com.sun.xml.stream.buffer.AbstractCreatorProcessor
_contentCharactersBuffer, _contentCharactersBufferPtr, _contentObjects, _contentObjectsPtr, _currentContentCharactersBufferFragment, _currentContentObjectFragment, _currentStructureFragment, _currentStructureStringFragment, _structure, _structurePtr, _structureStrings, _structureStringsPtr, CHAR_ARRAY_LENGTH_MEDIUM, CHAR_ARRAY_LENGTH_MEDIUM_SIZE, CHAR_ARRAY_LENGTH_SMALL, CHAR_ARRAY_LENGTH_SMALL_SIZE, CONTENT_TYPE_CHAR_ARRAY, CONTENT_TYPE_CHAR_ARRAY_COPY, CONTENT_TYPE_OBJECT, CONTENT_TYPE_STRING, FLAG_DOCUMENT_FRAGMENT, FLAG_PREFIX, FLAG_QUALIFIED_NAME, FLAG_URI, T_ATTRIBUTE, T_ATTRIBUTE_LN, T_ATTRIBUTE_LN_OBJECT, T_ATTRIBUTE_P_U_LN, T_ATTRIBUTE_P_U_LN_OBJECT, T_ATTRIBUTE_U_LN, T_ATTRIBUTE_U_LN_OBJECT, T_ATTRIBUTE_U_LN_QN, T_ATTRIBUTE_U_LN_QN_OBJECT, T_COMMENT, T_COMMENT_AS_CHAR_ARRAY, T_COMMENT_AS_CHAR_ARRAY_COPY, T_COMMENT_AS_CHAR_ARRAY_MEDIUM, T_COMMENT_AS_CHAR_ARRAY_SMALL, T_COMMENT_AS_STRING, T_DOCUMENT, T_DOCUMENT_FRAGMENT, T_ELEMENT, T_ELEMENT_LN, T_ELEMENT_P_U_LN, T_ELEMENT_U_LN, T_ELEMENT_U_LN_QN, T_END, T_END_OF_BUFFER, T_NAMESPACE_ATTRIBUTE, T_NAMESPACE_ATTRIBUTE_P, T_NAMESPACE_ATTRIBUTE_P_U, T_NAMESPACE_ATTRIBUTE_U, T_PROCESSING_INSTRUCTION, T_TEXT, T_TEXT_AS_CHAR_ARRAY, T_TEXT_AS_CHAR_ARRAY_COPY, T_TEXT_AS_CHAR_ARRAY_MEDIUM, T_TEXT_AS_CHAR_ARRAY_SMALL, T_TEXT_AS_OBJECT, T_TEXT_AS_STRING, T_UNEXPANDED_ENTITY_REFERENCE, TYPE_MASK, VALUE_TYPE_OBJECT, VALUE_TYPE_STRING -
Constructor Summary
ConstructorsConstructorDescriptionFastInfosetReaderSAXBufferCreator(com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcacheNamespaceAttribute(String prefix, String uri) voidcharacters(char[] ch, int start, int length) voidcomment(char[] ch, int start, int length) com.sun.xml.stream.buffer.MutableXMLStreamBuffercreate(FastInfosetReader reader, InputStream in) voidendCDATA()voidvoidendDTD()voidendElement(String uri, String localName, String qName) voidvoidendPrefixMapping(String prefix) voidvoidvoidignorableWhitespace(char[] ch, int start, int length) voidnotationDecl(String name, String publicId, String systemId) voidReceive notification of encoding algorithm data as an object.voidReceive notification of encoding algorithm data as an array of byte.voidprocessingInstruction(String target, String data) voidreset()resolveEntity(String publicId, String systemId) voidsetDocumentLocator(Locator locator) voidskippedEntity(String name) voidvoidvoidvoidstartElement(String uri, String localName, String qName, Attributes attributes) voidstartEntity(String name) voidstartPrefixMapping(String prefix, String uri) private voidstoreAttributes(EncodingAlgorithmAttributes attributes) private voidstoreContentObject(int algorithm, Object o) private voidprivate voidstoreQualifiedName(int item, String uri, String localName, String qName) voidunparsedEntityDecl(String name, String publicId, String systemId, String notationName) voidMethods inherited from class com.sun.xml.stream.buffer.AbstractCreator
createBuffer, getXMLStreamBuffer, increaseTreeCount, peekAtContentObject, resizeContentCharacters, resizeContentObjects, resizeStructure, resizeStructureStrings, setBuffer, setHasInternedStrings, setXMLStreamBuffer, storeContentCharacters, storeContentCharactersCopy, storeContentObject, storeContentString, storeStructure, storeStructureStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContentHandler
declaration
-
Field Details
-
_namespaceAttributes
String[] _namespaceAttributes -
_namespaceAttributesPtr
int _namespaceAttributesPtr
-
-
Constructor Details
-
FastInfosetReaderSAXBufferCreator
public FastInfosetReaderSAXBufferCreator() -
FastInfosetReaderSAXBufferCreator
public FastInfosetReaderSAXBufferCreator(com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer)
-
-
Method Details
-
create
public com.sun.xml.stream.buffer.MutableXMLStreamBuffer create(FastInfosetReader reader, InputStream in) throws IOException, SAXException - Throws:
IOExceptionSAXException
-
reset
public void reset() -
startDocument
- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException - Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
comment
- Specified by:
commentin interfaceLexicalHandler- Throws:
SAXException
-
octets
Description copied from interface:EncodingAlgorithmContentHandlerReceive notification of encoding algorithm data as an array of byte.The application must not attempt to read from the array outside of the specified range.
Such notifications will occur for a Fast Infoset SAX parser when processing encoding algorithm data.
The Parser will call the method of this interface to report each encoding algorithm data. Parsers MUST return all contiguous characters in a single chunk
Parsers may return all contiguous bytes in a single chunk, or they may split it into several chunks providing that the length of each chunk is of the required length to successfully apply the encoding algorithm to the chunk.
- Specified by:
octetsin interfaceEncodingAlgorithmContentHandler- Parameters:
URI- the URI of the encoding algorithmalgorithm- the encoding algorithm indexb- the array of bytestart- the start position in the arraylength- the number of byte to read from the array- Throws:
SAXException- any SAX exception, possibly wrapping another exception- See Also:
-
object
Description copied from interface:EncodingAlgorithmContentHandlerReceive notification of encoding algorithm data as an object.Such notifications will occur for a Fast Infoset SAX parser when processing encoding algorithm data that is converted from an array of byte to an object more suitable for processing.
- Specified by:
objectin interfaceEncodingAlgorithmContentHandler- Parameters:
URI- the URI of the encoding algorithmalgorithm- the encoding algorithm indexo- the encoding algorithm object- Throws:
SAXException- any SAX exception, possibly wrapping another exception- See Also:
-
cacheNamespaceAttribute
-
storeNamespaceAttributes
private void storeNamespaceAttributes() -
storeAttributes
-
storeContentObject
-
storeQualifiedName
-
resolveEntity
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
IOExceptionSAXException
-
notationDecl
- Specified by:
notationDeclin interfaceDTDHandler- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException - Specified by:
unparsedEntityDeclin interfaceDTDHandler- Throws:
SAXException
-
setDocumentLocator
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
startDTD
- Specified by:
startDTDin interfaceLexicalHandler- Throws:
SAXException
-
endDTD
- Specified by:
endDTDin interfaceLexicalHandler- Throws:
SAXException
-
startEntity
- Specified by:
startEntityin interfaceLexicalHandler- Throws:
SAXException
-
endEntity
- Specified by:
endEntityin interfaceLexicalHandler- Throws:
SAXException
-
startCDATA
- Specified by:
startCDATAin interfaceLexicalHandler- Throws:
SAXException
-
endCDATA
- Specified by:
endCDATAin interfaceLexicalHandler- Throws:
SAXException
-
warning
- Specified by:
warningin interfaceErrorHandler- Throws:
SAXException
-
error
- Specified by:
errorin interfaceErrorHandler- Throws:
SAXException
-
fatalError
- Specified by:
fatalErrorin interfaceErrorHandler- Throws:
SAXException
-