Java Doc for StreamReaderBufferProcessor.java in  » 6.0-JDK-Modules-com.sun » stream-buffer » com » sun » xml » stream » buffer » stax » 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.stax 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.sun.xml.stream.buffer.AbstractProcessor
   com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor

StreamReaderBufferProcessor
public class StreamReaderBufferProcessor extends AbstractProcessor implements XMLStreamReaderEx(Code)
A processor of a XMLStreamBuffer that reads the XML infoset as XMLStreamReader .

Because of XMLStreamReader design, this processor always produce a full document infoset, even if the buffer just contains a fragment.

When XMLStreamBuffer contains a multiple tree (AKA "forest"), XMLStreamReader will behave as if there are multiple root elements (so you'll see StreamReaderBufferProcessor.START_ELEMENT event where you'd normally expect StreamReaderBufferProcessor.END_DOCUMENT .)
author:
   Paul.Sandoz@Sun.Com
author:
   K.Venugopal@sun.com



Field Summary
protected  AttributesHolder_attributeCache
     Holder of the attributes.
protected  CharSequence_charSequence
    
protected  char[]_characters
    
protected  int_depth
     The element depth that we are in.
protected  int_eventType
    
protected  int_namespaceAIIsEnd
    
protected  String[]_namespaceAIIsNamespaceName
    
protected  String[]_namespaceAIIsPrefix
     Namespace prefixes.
protected  InternalNamespaceContext_nsCtx
    
protected  String_piData
    
protected  String_piTarget
    
protected  ElementStackEntry[]_stack
    
protected  ElementStackEntry_stackTop
     The top-most active entry of the StreamReaderBufferProcessor._stack .
protected  int_textLen
    
protected  int_textOffset
    

Constructor Summary
public  StreamReaderBufferProcessor()
    
public  StreamReaderBufferProcessor(XMLStreamBuffer buffer)
    

Method Summary
public  voidclose()
    
final public  intgetAttributeCount()
    
final public  StringgetAttributeLocalName(int index)
    
final public  javax.xml.namespace.QNamegetAttributeName(int index)
    
final public  StringgetAttributeNamespace(int index)
    
final public  StringgetAttributePrefix(int index)
    
final public  StringgetAttributeType(int index)
    
final public  StringgetAttributeValue(String namespaceURI, String localName)
    
final public  StringgetAttributeValue(int index)
    
final public  StringgetCharacterEncodingScheme()
    
final public  StringgetElementText()
    
final public  StringgetElementText(boolean startElementRead)
    
final public  StringgetElementTextTrim()
    
final public  StringgetEncoding()
    
final public  intgetEventType()
    
final public  StringgetLocalName()
    
final public  LocationgetLocation()
    
final public  QNamegetName()
    
final public  NamespaceContextExgetNamespaceContext()
    
final public  intgetNamespaceCount()
    
final public  StringgetNamespacePrefix(int index)
    
final public  StringgetNamespaceURI(int index)
    
final public  StringgetNamespaceURI(String prefix)
    
final public  StringgetNamespaceURI()
    
final public  CharSequencegetPCDATA()
    
final public  StringgetPIData()
    
final public  StringgetPITarget()
    
final public  StringgetPrefix()
    
public  ObjectgetProperty(String name)
    
final public  StringgetText()
    
final public  char[]getTextCharacters()
    
final public  intgetTextCharacters(int sourceStart, char[] target, int targetStart, int length)
    
final public  intgetTextLength()
    
final public  intgetTextStart()
    
final public  StringgetVersion()
    
final public  booleanhasName()
    
final public  booleanhasNext()
    
final public  booleanhasText()
    
final public  booleanisAttributeSpecified(int index)
    
final public  booleanisCharacters()
    
final public  booleanisEndElement()
    
final public  booleanisStandalone()
    
final public  booleanisStartElement()
    
final public  booleanisWhiteSpace()
    
public  intnext()
    
final public  intnextTag()
    
final public  intnextTag(boolean currentTagRead)
    
public  XMLStreamBuffernextTagAndMark()
     Does StreamReaderBufferProcessor.nextTag() and if the parser moved to a new start tag, returns a XMLStreamBufferMark that captures the infoset starting from the newly discovered element.
protected  voidprocessElement(String prefix, String uri, String localName)
    
final public  voidrequire(int type, String namespaceURI, String localName)
    
public  voidsetXMLStreamBuffer(XMLStreamBuffer buffer)
    
final public  booleanstandaloneSet()
    

Field Detail
_attributeCache
protected AttributesHolder _attributeCache(Code)
Holder of the attributes. Be careful that this follows the SAX convention of using "" instead of null.



_charSequence
protected CharSequence _charSequence(Code)



_characters
protected char[] _characters(Code)



_depth
protected int _depth(Code)
The element depth that we are in. Used to determine when we are done with a tree.



_eventType
protected int _eventType(Code)



_namespaceAIIsEnd
protected int _namespaceAIIsEnd(Code)



_namespaceAIIsNamespaceName
protected String[] _namespaceAIIsNamespaceName(Code)



_namespaceAIIsPrefix
protected String[] _namespaceAIIsPrefix(Code)
Namespace prefixes. Can be empty but not null.



_nsCtx
protected InternalNamespaceContext _nsCtx(Code)



_piData
protected String _piData(Code)



_piTarget
protected String _piTarget(Code)



_stack
protected ElementStackEntry[] _stack(Code)



_stackTop
protected ElementStackEntry _stackTop(Code)
The top-most active entry of the StreamReaderBufferProcessor._stack .



_textLen
protected int _textLen(Code)



_textOffset
protected int _textOffset(Code)




Constructor Detail
StreamReaderBufferProcessor
public StreamReaderBufferProcessor()(Code)



StreamReaderBufferProcessor
public StreamReaderBufferProcessor(XMLStreamBuffer buffer) throws XMLStreamException(Code)




Method Detail
close
public void close() throws XMLStreamException(Code)



getAttributeCount
final public int getAttributeCount()(Code)



getAttributeLocalName
final public String getAttributeLocalName(int index)(Code)



getAttributeName
final public javax.xml.namespace.QName getAttributeName(int index)(Code)



getAttributeNamespace
final public String getAttributeNamespace(int index)(Code)



getAttributePrefix
final public String getAttributePrefix(int index)(Code)



getAttributeType
final public String getAttributeType(int index)(Code)



getAttributeValue
final public String getAttributeValue(String namespaceURI, String localName)(Code)



getAttributeValue
final public String getAttributeValue(int index)(Code)



getCharacterEncodingScheme
final public String getCharacterEncodingScheme()(Code)



getElementText
final public String getElementText() throws XMLStreamException(Code)



getElementText
final public String getElementText(boolean startElementRead) throws XMLStreamException(Code)



getElementTextTrim
final public String getElementTextTrim() throws XMLStreamException(Code)



getEncoding
final public String getEncoding()(Code)



getEventType
final public int getEventType()(Code)



getLocalName
final public String getLocalName()(Code)



getLocation
final public Location getLocation()(Code)



getName
final public QName getName()(Code)



getNamespaceContext
final public NamespaceContextEx getNamespaceContext()(Code)



getNamespaceCount
final public int getNamespaceCount()(Code)



getNamespacePrefix
final public String getNamespacePrefix(int index)(Code)



getNamespaceURI
final public String getNamespaceURI(int index)(Code)



getNamespaceURI
final public String getNamespaceURI(String prefix)(Code)



getNamespaceURI
final public String getNamespaceURI()(Code)



getPCDATA
final public CharSequence getPCDATA()(Code)



getPIData
final public String getPIData()(Code)



getPITarget
final public String getPITarget()(Code)



getPrefix
final public String getPrefix()(Code)



getProperty
public Object getProperty(String name)(Code)



getText
final public String getText()(Code)



getTextCharacters
final public char[] getTextCharacters()(Code)



getTextCharacters
final public int getTextCharacters(int sourceStart, char[] target, int targetStart, int length) throws XMLStreamException(Code)



getTextLength
final public int getTextLength()(Code)



getTextStart
final public int getTextStart()(Code)



getVersion
final public String getVersion()(Code)



hasName
final public boolean hasName()(Code)



hasNext
final public boolean hasNext()(Code)



hasText
final public boolean hasText()(Code)



isAttributeSpecified
final public boolean isAttributeSpecified(int index)(Code)



isCharacters
final public boolean isCharacters()(Code)



isEndElement
final public boolean isEndElement()(Code)



isStandalone
final public boolean isStandalone()(Code)



isStartElement
final public boolean isStartElement()(Code)



isWhiteSpace
final public boolean isWhiteSpace()(Code)



next
public int next() throws XMLStreamException(Code)



nextTag
final public int nextTag() throws XMLStreamException(Code)



nextTag
final public int nextTag(boolean currentTagRead) throws XMLStreamException(Code)



nextTagAndMark
public XMLStreamBuffer nextTagAndMark() throws XMLStreamException(Code)
Does StreamReaderBufferProcessor.nextTag() and if the parser moved to a new start tag, returns a XMLStreamBufferMark that captures the infoset starting from the newly discovered element.

(Ideally we should have a method that works against the current position, but the way the data structure is read makes this somewhat difficult.) This creates a new XMLStreamBufferMark that shares the underlying data storage, thus it's fairly efficient.




processElement
protected void processElement(String prefix, String uri, String localName)(Code)



require
final public void require(int type, String namespaceURI, String localName) throws XMLStreamException(Code)



setXMLStreamBuffer
public void setXMLStreamBuffer(XMLStreamBuffer buffer) throws XMLStreamException(Code)



standaloneSet
final public boolean standaloneSet()(Code)



Fields inherited from com.sun.xml.stream.buffer.AbstractProcessor
final protected static int STATE_ATTRIBUTE_LN(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_LN_OBJECT(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_P_U_LN(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_P_U_LN_OBJECT(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_U_LN(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_U_LN_OBJECT(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_U_LN_QN(Code)(Java Doc)
final protected static int STATE_ATTRIBUTE_U_LN_QN_OBJECT(Code)(Java Doc)
final protected static int STATE_COMMENT_AS_CHAR_ARRAY_COPY(Code)(Java Doc)
final protected static int STATE_COMMENT_AS_CHAR_ARRAY_MEDIUM(Code)(Java Doc)
final protected static int STATE_COMMENT_AS_CHAR_ARRAY_SMALL(Code)(Java Doc)
final protected static int STATE_COMMENT_AS_STRING(Code)(Java Doc)
final protected static int STATE_DOCUMENT(Code)(Java Doc)
final protected static int STATE_DOCUMENT_FRAGMENT(Code)(Java Doc)
final protected static int STATE_ELEMENT_LN(Code)(Java Doc)
final protected static int STATE_ELEMENT_P_U_LN(Code)(Java Doc)
final protected static int STATE_ELEMENT_U_LN(Code)(Java Doc)
final protected static int STATE_ELEMENT_U_LN_QN(Code)(Java Doc)
final protected static int STATE_END(Code)(Java Doc)
final protected static int STATE_ILLEGAL(Code)(Java Doc)
final protected static int STATE_NAMESPACE_ATTRIBUTE(Code)(Java Doc)
final protected static int STATE_NAMESPACE_ATTRIBUTE_P(Code)(Java Doc)
final protected static int STATE_NAMESPACE_ATTRIBUTE_P_U(Code)(Java Doc)
final protected static int STATE_NAMESPACE_ATTRIBUTE_U(Code)(Java Doc)
final protected static int STATE_PROCESSING_INSTRUCTION(Code)(Java Doc)
final protected static int STATE_TEXT_AS_CHAR_ARRAY_COPY(Code)(Java Doc)
final protected static int STATE_TEXT_AS_CHAR_ARRAY_MEDIUM(Code)(Java Doc)
final protected static int STATE_TEXT_AS_CHAR_ARRAY_SMALL(Code)(Java Doc)
final protected static int STATE_TEXT_AS_OBJECT(Code)(Java Doc)
final protected static int STATE_TEXT_AS_STRING(Code)(Java Doc)
final protected static int[] _aiiStateTable(Code)(Java Doc)
protected XMLStreamBuffer _buffer(Code)(Java Doc)
final protected static int[] _eiiStateTable(Code)(Java Doc)
protected boolean _fragmentMode(Code)(Java Doc)
final protected static int[] _niiStateTable(Code)(Java Doc)
final protected StringBuilder _qNameBuffer(Code)(Java Doc)
protected boolean _stringInterningFeature(Code)(Java Doc)
protected int _treeCount(Code)(Java Doc)

Methods inherited from com.sun.xml.stream.buffer.AbstractProcessor
final protected String getPrefixFromQName(String qName)(Code)(Java Doc)
final protected String getQName(String prefix, String localName)(Code)(Java Doc)
final protected int peekStructure()(Code)(Java Doc)
final protected int readContentCharactersBuffer(int length)(Code)(Java Doc)
final protected char[] readContentCharactersCopy()(Code)(Java Doc)
final protected Object readContentObject()(Code)(Java Doc)
final protected String readContentString()(Code)(Java Doc)
final protected int readEiiState()(Code)(Java Doc)
final protected int readStructure()(Code)(Java Doc)
final protected int readStructure16()(Code)(Java Doc)
final protected String readStructureString()(Code)(Java Doc)
final protected void setBuffer(XMLStreamBuffer buffer)(Code)(Java Doc)
final protected void setBuffer(XMLStreamBuffer buffer, boolean fragmentMode)(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.