|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.stream.buffer.AbstractCreatorProcessor
com.sun.xml.stream.buffer.AbstractCreator
com.sun.xml.fastinfoset.streambuffer.FastInfosetReaderSAXBufferCreator
public final class FastInfosetReaderSAXBufferCreator
A creator of a XMLStreamBuffer that that produces the XML infoset
using a FastInfosetReader.
| Field Summary | |
|---|---|
protected String[] |
_namespaceAttributes
|
protected int |
_namespaceAttributesPtr
|
| Fields inherited from class com.sun.xml.stream.buffer.AbstractCreator |
|---|
_buffer |
| Fields 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 | |
|---|---|
FastInfosetReaderSAXBufferCreator()
|
|
FastInfosetReaderSAXBufferCreator(com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer)
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
comment(char[] ch,
int start,
int length)
|
com.sun.xml.stream.buffer.MutableXMLStreamBuffer |
create(FastInfosetReader reader,
InputStream in)
|
void |
endCDATA()
|
void |
endDocument()
|
void |
endDTD()
|
void |
endElement(String uri,
String localName,
String qName)
|
void |
endEntity(String name)
|
void |
endPrefixMapping(String prefix)
|
void |
error(SAXParseException e)
|
void |
fatalError(SAXParseException e)
|
void |
ignorableWhitespace(char[] ch,
int start,
int length)
|
void |
notationDecl(String name,
String publicId,
String systemId)
|
void |
object(String URI,
int algorithm,
Object o)
Receive notification of encoding algorithm data as an object. |
void |
octets(String URI,
int algorithm,
byte[] b,
int start,
int length)
Receive notification of encoding algorithm data as an array of byte. |
void |
processingInstruction(String target,
String data)
|
void |
reset()
|
InputSource |
resolveEntity(String publicId,
String systemId)
|
void |
setDocumentLocator(Locator locator)
|
void |
skippedEntity(String name)
|
void |
startCDATA()
|
void |
startDocument()
|
void |
startDTD(String name,
String publicId,
String systemId)
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
|
void |
startEntity(String name)
|
void |
startPrefixMapping(String prefix,
String uri)
|
void |
unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
|
void |
warning(SAXParseException e)
|
| Methods 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, storeStructureString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String[] _namespaceAttributes
protected int _namespaceAttributesPtr
| Constructor Detail |
|---|
public FastInfosetReaderSAXBufferCreator()
public FastInfosetReaderSAXBufferCreator(com.sun.xml.stream.buffer.MutableXMLStreamBuffer buffer)
| Method Detail |
|---|
public com.sun.xml.stream.buffer.MutableXMLStreamBuffer create(FastInfosetReader reader,
InputStream in)
throws IOException,
SAXException
IOException
SAXExceptionpublic void reset()
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXException
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerSAXException
public void startElement(String uri,
String localName,
String qName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerSAXException
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerSAXException
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerSAXException
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerSAXException
public void processingInstruction(String target,
String data)
throws SAXException
processingInstruction in interface ContentHandlerSAXException
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment in interface LexicalHandlerSAXException
public void octets(String URI,
int algorithm,
byte[] b,
int start,
int length)
throws SAXException
EncodingAlgorithmContentHandlerThe 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.
octets in interface EncodingAlgorithmContentHandlerURI - 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
SAXException - any SAX exception, possibly
wrapping another exceptionEncodingAlgorithmIndexes
public void object(String URI,
int algorithm,
Object o)
throws SAXException
EncodingAlgorithmContentHandlerSuch 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.
object in interface EncodingAlgorithmContentHandlerURI - the URI of the encoding algorithmalgorithm - the encoding algorithm indexo - the encoding algorithm object
SAXException - any SAX exception, possibly
wrapping another exceptionEncodingAlgorithmIndexes
public InputSource resolveEntity(String publicId,
String systemId)
throws IOException,
SAXException
resolveEntity in interface EntityResolverIOException
SAXException
public void notationDecl(String name,
String publicId,
String systemId)
throws SAXException
notationDecl in interface DTDHandlerSAXException
public void unparsedEntityDecl(String name,
String publicId,
String systemId,
String notationName)
throws SAXException
unparsedEntityDecl in interface DTDHandlerSAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandler
public void endPrefixMapping(String prefix)
throws SAXException
endPrefixMapping in interface ContentHandlerSAXException
public void skippedEntity(String name)
throws SAXException
skippedEntity in interface ContentHandlerSAXException
public void startDTD(String name,
String publicId,
String systemId)
throws SAXException
startDTD in interface LexicalHandlerSAXException
public void endDTD()
throws SAXException
endDTD in interface LexicalHandlerSAXException
public void startEntity(String name)
throws SAXException
startEntity in interface LexicalHandlerSAXException
public void endEntity(String name)
throws SAXException
endEntity in interface LexicalHandlerSAXException
public void startCDATA()
throws SAXException
startCDATA in interface LexicalHandlerSAXException
public void endCDATA()
throws SAXException
endCDATA in interface LexicalHandlerSAXException
public void warning(SAXParseException e)
throws SAXException
warning in interface ErrorHandlerSAXException
public void error(SAXParseException e)
throws SAXException
error in interface ErrorHandlerSAXException
public void fatalError(SAXParseException e)
throws SAXException
fatalError in interface ErrorHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||