|
||||||||||
| 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.AbstractProcessor
com.sun.xml.stream.buffer.sax.SAXBufferProcessor
public class SAXBufferProcessor
A processor of a XMLStreamBuffer that that reads the XML infoset as
XMLReader.
| Field Summary | |
|---|---|
protected AttributesHolder |
_attributes
|
protected ContentHandler |
_contentHandler
Reference to content 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[] |
_namespaceAttributesStack
|
protected int |
_namespaceAttributesStackIndex
|
protected int[] |
_namespaceAttributesStartingStack
|
protected String[] |
_namespacePrefixes
|
protected boolean |
_namespacePrefixesFeature
SAX Namespace attributes features |
protected int |
_namespacePrefixesIndex
|
| Constructor Summary | |
|---|---|
SAXBufferProcessor()
|
|
SAXBufferProcessor(XMLStreamBuffer buffer)
Deprecated. Use SAXBufferProcessor(XMLStreamBuffer, boolean) |
|
SAXBufferProcessor(XMLStreamBuffer buffer,
boolean produceFragmentEvent)
|
|
| Methods inherited from class com.sun.xml.stream.buffer.AbstractProcessor |
|---|
getAIIState, getEIIState, getNIIState, getPrefixFromQName, getQName, peekStructure, readContentCharactersBuffer, readContentCharactersCopy, readContentObject, readContentString, readEiiState, readStructure, readStructure16, readStructureString, setBuffer, setBuffer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EntityResolver _entityResolver
protected DTDHandler _dtdHandler
protected ContentHandler _contentHandler
protected ErrorHandler _errorHandler
protected LexicalHandler _lexicalHandler
protected boolean _namespacePrefixesFeature
protected AttributesHolder _attributes
protected String[] _namespacePrefixes
protected int _namespacePrefixesIndex
protected int[] _namespaceAttributesStartingStack
protected int[] _namespaceAttributesStack
protected int _namespaceAttributesStackIndex
| Constructor Detail |
|---|
public SAXBufferProcessor()
public SAXBufferProcessor(XMLStreamBuffer buffer)
SAXBufferProcessor(XMLStreamBuffer, boolean)
public SAXBufferProcessor(XMLStreamBuffer buffer,
boolean produceFragmentEvent)
produceFragmentEvent - True to generate fragment SAX events without start/endDocument.
False to generate a full document SAX events.| Method Detail |
|---|
public boolean getFeature(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name,
boolean value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name)
throws SAXNotRecognizedException,
SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedException
SAXNotSupportedExceptionpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic void setLexicalHandler(LexicalHandler handler)
public LexicalHandler getLexicalHandler()
public void parse(InputSource input)
throws IOException,
SAXException
parse in interface XMLReaderIOException
SAXException
public void parse(String systemId)
throws IOException,
SAXException
parse in interface XMLReaderIOException
SAXException
public final void process(XMLStreamBuffer buffer)
throws SAXException
process(XMLStreamBuffer, boolean)
setXMLStreamBuffer(XMLStreamBuffer) then process().
SAXException
public final void process(XMLStreamBuffer buffer,
boolean produceFragmentEvent)
throws SAXException
setXMLStreamBuffer(XMLStreamBuffer,boolean) then process().
produceFragmentEvent - True to generate fragment SAX events without start/endDocument.
False to generate a full document SAX events.
SAXExceptionpublic void setXMLStreamBuffer(XMLStreamBuffer buffer)
setXMLStreamBuffer(XMLStreamBuffer, boolean).
XMLStreamBuffer.
public void setXMLStreamBuffer(XMLStreamBuffer buffer,
boolean produceFragmentEvent)
XMLStreamBuffer.
produceFragmentEvent - True to generate fragment SAX events without start/endDocument.
False to generate a full document SAX events.
public final void process()
throws SAXException
XMLStreamBuffer
points to, and sends events to handlers.
TODO: We probably need two modes for a sub-tree event generation. One for firing a sub-tree as if it's a whole document (in which case start/endDocument and appropriate additional namespace bindings are necessary), and the other mode for firing a subtree as a subtree, like it does today. A stream buffer SAX feature could be used to specify this.
SAXException - Follow the same semantics as XMLReader.parse(InputSource).
protected void processElement(String uri,
String localName,
String qName,
boolean inscope)
throws SAXException
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||