| |
|
| java.lang.Object com.sun.xml.stream.buffer.XMLStreamBuffer com.sun.xml.stream.buffer.MutableXMLStreamBuffer
MutableXMLStreamBuffer | public class MutableXMLStreamBuffer extends XMLStreamBuffer (Code) | | A mutable stream-based buffer of an XML infoset.
A MutableXMLStreamBuffer is created using specific SAX and StAX-based
creators. Utility methods on MutableXMLStreamBuffer are provided for
such functionality that utilize SAX and StAX-based creators.
Once instantiated the same instance of a MutableXMLStreamBuffer may be reused for
creation to reduce the amount of Objects instantiated and garbage
collected that are required for internally representing an XML infoset.
A MutableXMLStreamBuffer is not designed to be created and processed
concurrently. If done so unspecified behaviour may occur.
|
Field Summary | |
final public static int | DEFAULT_ARRAY_SIZE The default array size for the arrays used in internal representation
of the XML infoset. |
DEFAULT_ARRAY_SIZE | final public static int DEFAULT_ARRAY_SIZE(Code) | | The default array size for the arrays used in internal representation
of the XML infoset.
|
MutableXMLStreamBuffer | public MutableXMLStreamBuffer(int size)(Code) | | Create a new MutableXMLStreamBuffer.
Parameters: size - The size of the arrays used in the internal representation of the XML infoset. throws: NegativeArraySizeException - If the size argument is less than 0 . |
reset | public void reset()(Code) | | Reset the MutableXMLStreamBuffer.
This method will reset the MutableXMLStreamBuffer to a state of being "uncreated"
similar to the state of a newly instantiated MutableXMLStreamBuffer.
As many Objects as possible will be retained for reuse in future creation.
|
setHasInternedStrings | protected void setHasInternedStrings(boolean hasInternedStrings)(Code) | | |
setSystemId | public void setSystemId(String systemId)(Code) | | Set the system identifier for this buffer.
Parameters: systemId - The system identifier. |
Methods inherited from com.sun.xml.stream.buffer.XMLStreamBuffer | public static XMLStreamBuffer createNewBufferFromXMLReader(XMLReader reader, InputStream in) throws SAXException, IOException(Code)(Java Doc) public static XMLStreamBuffer createNewBufferFromXMLReader(XMLReader reader, InputStream in, String systemId) throws SAXException, IOException(Code)(Java Doc) public static XMLStreamBuffer createNewBufferFromXMLStreamReader(XMLStreamReader reader) throws XMLStreamException(Code)(Java Doc) final protected FragmentedArray<char[]> getContentCharactersBuffer()(Code)(Java Doc) final protected int getContentCharactersBufferPtr()(Code)(Java Doc) final protected FragmentedArray<Object[]> getContentObjects()(Code)(Java Doc) final protected int getContentObjectsPtr()(Code)(Java Doc) final public Map<String, String> getInscopeNamespaces()(Code)(Java Doc) final protected FragmentedArray<byte[]> getStructure()(Code)(Java Doc) final protected int getStructurePtr()(Code)(Java Doc) final protected FragmentedArray<String[]> getStructureStrings()(Code)(Java Doc) final protected int getStructureStringsPtr()(Code)(Java Doc) final public String getSystemId()(Code)(Java Doc) final public boolean hasInternedStrings()(Code)(Java Doc) final public boolean isCreated()(Code)(Java Doc) final public boolean isElementFragment()(Code)(Java Doc) final public boolean isForest()(Code)(Java Doc) final public boolean isFragment()(Code)(Java Doc) final public SAXBufferProcessor readAsXMLReader()(Code)(Java Doc) final public SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent)(Code)(Java Doc) final public StreamReaderBufferProcessor readAsXMLStreamReader() throws XMLStreamException(Code)(Java Doc) final public void writeTo(ContentHandler handler, boolean produceFragmentEvent) throws SAXException(Code)(Java Doc) final public void writeTo(ContentHandler handler) throws SAXException(Code)(Java Doc) final public void writeTo(ContentHandler handler, ErrorHandler errorHandler, boolean produceFragmentEvent) throws SAXException(Code)(Java Doc) final public void writeTo(ContentHandler handler, ErrorHandler errorHandler) throws SAXException(Code)(Java Doc) final public Node writeTo(Node n) throws XMLStreamBufferException(Code)(Java Doc) final public void writeToXMLStreamWriter(XMLStreamWriter writer, boolean writeAsFragment) throws XMLStreamException(Code)(Java Doc) final public void writeToXMLStreamWriter(XMLStreamWriter writer) throws XMLStreamException(Code)(Java Doc)
|
|
|
|