com.sun.xml.ws.streaming
Class TidyXMLStreamReader

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamReaderFilter
      extended by com.sun.xml.ws.streaming.TidyXMLStreamReader
All Implemented Interfaces:
XMLStreamReaderFactory.RecycleAware, javax.xml.stream.XMLStreamConstants, javax.xml.stream.XMLStreamReader

public class TidyXMLStreamReader
extends XMLStreamReaderFilter

Wrapper over XMLStreamReader. It will be used primarily to clean up the resources such as closure on InputStream/Reader.


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
TidyXMLStreamReader(javax.xml.stream.XMLStreamReader reader, Closeable closeableSource)
           
 
Method Summary
 void close()
           
 
Methods inherited from class com.sun.xml.ws.util.xml.XMLStreamReaderFilter
getAttributeCount, getAttributeLocalName, getAttributeName, getAttributeNamespace, getAttributePrefix, getAttributeType, getAttributeValue, getAttributeValue, getCharacterEncodingScheme, getElementText, getEncoding, getEventType, getLocalName, getLocation, getName, getNamespaceContext, getNamespaceCount, getNamespacePrefix, getNamespaceURI, getNamespaceURI, getNamespaceURI, getPIData, getPITarget, getPrefix, getProperty, getText, getTextCharacters, getTextCharacters, getTextLength, getTextStart, getVersion, hasName, hasNext, hasText, isAttributeSpecified, isCharacters, isEndElement, isStandalone, isStartElement, isWhiteSpace, next, nextTag, onRecycled, require, standaloneSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TidyXMLStreamReader

public TidyXMLStreamReader(@NotNull
                           javax.xml.stream.XMLStreamReader reader,
                           @Nullable
                           Closeable closeableSource)
Method Detail

close

public void close()
           throws javax.xml.stream.XMLStreamException
Specified by:
close in interface javax.xml.stream.XMLStreamReader
Overrides:
close in class XMLStreamReaderFilter
Throws:
javax.xml.stream.XMLStreamException