com.sun.xml.ws.encoding
Class MtomCodec.MtomXMLStreamReaderEx

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamReaderFilter
      extended by com.sun.xml.ws.encoding.MtomCodec.MtomXMLStreamReaderEx
All Implemented Interfaces:
XMLStreamReaderFactory.RecycleAware, XMLStreamConstants, XMLStreamReader, XMLStreamReaderEx
Enclosing class:
MtomCodec

public static class MtomCodec.MtomXMLStreamReaderEx
extends XMLStreamReaderFilter
implements XMLStreamReaderEx


Field Summary
 
Fields inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderFilter
reader
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
MtomCodec.MtomXMLStreamReaderEx(MimeMultipartParser mimeMP, XMLStreamReader reader)
           
 
Method Summary
 String getElementTextTrim()
          Works like XMLStreamReader.getElementText() but trims the leading and trailing whitespace.
 int getEventType()
           
 MimeMultipartParser getMimeMultipartParser()
           
 NamespaceContextEx getNamespaceContext()
          
 CharSequence getPCDATA()
          Works like XMLStreamReader.getText() but hides the actual data representation.
 String getText()
           
 char[] getTextCharacters()
           
 int getTextCharacters(int sourceStart, char[] target, int targetStart, int length)
           
 int getTextLength()
           
 int getTextStart()
           
protected  String getXopHref()
           
protected  boolean isXopReference()
           
 int next()
           
 
Methods inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderFilter
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, onRecycled, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.XMLStreamReader
close, getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getLocalName, getLocation, getName, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, nextTag, require, standaloneSet
 

Constructor Detail

MtomCodec.MtomXMLStreamReaderEx

public MtomCodec.MtomXMLStreamReaderEx(MimeMultipartParser mimeMP,
                                       XMLStreamReader reader)
Method Detail

getPCDATA

public CharSequence getPCDATA()
                       throws XMLStreamException
Description copied from interface: XMLStreamReaderEx
Works like XMLStreamReader.getText() but hides the actual data representation.

Specified by:
getPCDATA in interface XMLStreamReaderEx
Returns:
The CharSequence that represents the character infoset items at the current position.

The CharSequence is normally a String, but can be any other CharSequence implementation. For binary data, however, use of Base64Data is recommended (so that the consumer interested in seeing it as binary data may take advantage of mor efficient data representation.)

The object returned from this method belongs to the parser, and its content is guaranteed to be the same only until the XMLStreamReader.next() method is invoked.

Throws:
XMLStreamException

getNamespaceContext

public NamespaceContextEx getNamespaceContext()
Description copied from interface: XMLStreamReaderEx

Specified by:
getNamespaceContext in interface XMLStreamReader
Specified by:
getNamespaceContext in interface XMLStreamReaderEx
Overrides:
getNamespaceContext in class XMLStreamReaderFilter

getElementTextTrim

public String getElementTextTrim()
                          throws XMLStreamException
Description copied from interface: XMLStreamReaderEx
Works like XMLStreamReader.getElementText() but trims the leading and trailing whitespace.

The parser can often do this more efficiently than getElementText().trim().

Specified by:
getElementTextTrim in interface XMLStreamReaderEx
Throws:
XMLStreamException
See Also:
XMLStreamReader.getElementText()

getTextLength

public int getTextLength()
Specified by:
getTextLength in interface XMLStreamReader
Overrides:
getTextLength in class XMLStreamReaderFilter

getTextStart

public int getTextStart()
Specified by:
getTextStart in interface XMLStreamReader
Overrides:
getTextStart in class XMLStreamReaderFilter

getEventType

public int getEventType()
Specified by:
getEventType in interface XMLStreamReader
Overrides:
getEventType in class XMLStreamReaderFilter

next

public int next()
         throws XMLStreamException
Specified by:
next in interface XMLStreamReader
Overrides:
next in class XMLStreamReaderFilter
Throws:
XMLStreamException

getTextCharacters

public char[] getTextCharacters()
Specified by:
getTextCharacters in interface XMLStreamReader
Overrides:
getTextCharacters in class XMLStreamReaderFilter

getTextCharacters

public int getTextCharacters(int sourceStart,
                             char[] target,
                             int targetStart,
                             int length)
                      throws XMLStreamException
Specified by:
getTextCharacters in interface XMLStreamReader
Overrides:
getTextCharacters in class XMLStreamReaderFilter
Throws:
XMLStreamException

getText

public String getText()
Specified by:
getText in interface XMLStreamReader
Overrides:
getText in class XMLStreamReaderFilter

isXopReference

protected boolean isXopReference()
                          throws XMLStreamException
Throws:
XMLStreamException

getXopHref

protected String getXopHref()

getMimeMultipartParser

public MimeMultipartParser getMimeMultipartParser()


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.