Java Doc for MutableXMLStreamBuffer.java in  » 6.0-JDK-Modules-com.sun » stream-buffer » com » sun » xml » stream » buffer » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » stream buffer » com.sun.xml.stream.buffer 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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  intDEFAULT_ARRAY_SIZE
     The default array size for the arrays used in internal representation of the XML infoset.

Constructor Summary
public  MutableXMLStreamBuffer()
     Create a new MutableXMLStreamBuffer using the MutableXMLStreamBuffer.DEFAULT_ARRAY_SIZE .
public  MutableXMLStreamBuffer(int size)
     Create a new MutableXMLStreamBuffer.

Method Summary
public  SAXBufferCreatorcreateFromSAXBufferCreator()
     Create contents of a buffer from a SAXBufferCreator .
public  voidcreateFromXMLReader(XMLReader reader, InputStream in)
     Create contents of a buffer from a XMLReader and InputStream .
public  voidcreateFromXMLReader(XMLReader reader, InputStream in, String systemId)
     Create contents of a buffer from a XMLReader and InputStream .
public  voidcreateFromXMLStreamReader(XMLStreamReader reader)
     Create contents of a buffer from a XMLStreamReader.
public  XMLStreamWritercreateFromXMLStreamWriter()
     Create contents of a buffer from a XMLStreamWriter.
public  voidreset()
     Reset the MutableXMLStreamBuffer.
protected  voidsetHasInternedStrings(boolean hasInternedStrings)
    
public  voidsetSystemId(String systemId)
     Set the system identifier for this buffer.

Field Detail
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.




Constructor Detail
MutableXMLStreamBuffer
public MutableXMLStreamBuffer()(Code)
Create a new MutableXMLStreamBuffer using the MutableXMLStreamBuffer.DEFAULT_ARRAY_SIZE .



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.




Method Detail
createFromSAXBufferCreator
public SAXBufferCreator createFromSAXBufferCreator()(Code)
Create contents of a buffer from a SAXBufferCreator .

The MutableXMLStreamBuffer is reset (see MutableXMLStreamBuffer.reset ) before creation.

The MutableXMLStreamBuffer is created by consuming events from a ContentHandler using an instance of SAXBufferCreator . The SAXBufferCreator to create from.




createFromXMLReader
public void createFromXMLReader(XMLReader reader, InputStream in) throws SAXException, IOException(Code)
Create contents of a buffer from a XMLReader and InputStream .

The MutableXMLStreamBuffer is reset (see MutableXMLStreamBuffer.reset ) before creation.

The MutableXMLStreamBuffer is created by using an instance of SAXBufferCreator and registering associated handlers on the XMLReader .
Parameters:
  reader - The XMLReader to use for parsing.
Parameters:
  in - The InputStream to be parsed.




createFromXMLReader
public void createFromXMLReader(XMLReader reader, InputStream in, String systemId) throws SAXException, IOException(Code)
Create contents of a buffer from a XMLReader and InputStream .

The MutableXMLStreamBuffer is reset (see MutableXMLStreamBuffer.reset ) before creation.

The MutableXMLStreamBuffer is created by using an instance of SAXBufferCreator and registering associated handlers on the XMLReader .
Parameters:
  reader - The XMLReader to use for parsing.
Parameters:
  in - The InputStream to be parsed.
Parameters:
  systemId - The system ID of the input stream.




createFromXMLStreamReader
public void createFromXMLStreamReader(XMLStreamReader reader) throws XMLStreamException(Code)
Create contents of a buffer from a XMLStreamReader.

The MutableXMLStreamBuffer is reset (see MutableXMLStreamBuffer.reset ) before creation.

The MutableXMLStreamBuffer is created by consuming the events on the XMLStreamReader using an instance of StreamReaderBufferCreator .
Parameters:
  reader - A XMLStreamReader to read from to create.




createFromXMLStreamWriter
public XMLStreamWriter createFromXMLStreamWriter()(Code)
Create contents of a buffer from a XMLStreamWriter.

The MutableXMLStreamBuffer is reset (see MutableXMLStreamBuffer.reset ) before creation.

The MutableXMLStreamBuffer is created by consuming events on a XMLStreamWriter using an instance of StreamWriterBufferCreator .




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.



Fields inherited from com.sun.xml.stream.buffer.XMLStreamBuffer
protected FragmentedArray<char[]> _contentCharactersBuffer(Code)(Java Doc)
protected int _contentCharactersBufferPtr(Code)(Java Doc)
protected FragmentedArray<Object[]> _contentObjects(Code)(Java Doc)
protected int _contentObjectsPtr(Code)(Java Doc)
protected boolean _hasInternedStrings(Code)(Java Doc)
protected Map<String, String> _inscopeNamespaces(Code)(Java Doc)
protected FragmentedArray<byte[]> _structure(Code)(Java Doc)
protected int _structurePtr(Code)(Java Doc)
protected FragmentedArray<String[]> _structureStrings(Code)(Java Doc)
protected int _structureStringsPtr(Code)(Java Doc)
protected String systemId(Code)(Java Doc)
protected int treeCount(Code)(Java Doc)

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)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.