com.sun.xml.ws.util.xml
Class XMLStreamReaderToXMLStreamWriter

java.lang.Object
  extended by com.sun.xml.ws.util.xml.XMLStreamReaderToXMLStreamWriter
Direct Known Subclasses:
ManagementWSDLPatcher

Deprecated. use org.jvnet.staxex.util.XMLStreamReaderToXMLStreamWriter

public class XMLStreamReaderToXMLStreamWriter
extends Object

Reads a sub-tree from XMLStreamReader and writes to XMLStreamWriter as-is.

This class can be sub-classed to implement a simple transformation logic.

Author:
Kohsuke Kawaguchi, Ryan Shoemaker

Field Summary
protected  XMLStreamReader in
          Deprecated.  
protected  XMLStreamWriter out
          Deprecated.  
 
Constructor Summary
XMLStreamReaderToXMLStreamWriter()
          Deprecated.  
 
Method Summary
 void bridge(XMLStreamReader in, XMLStreamWriter out)
          Deprecated. Reads one subtree and writes it out.
protected  void handleAttribute(int i)
          Deprecated. Writes out the i-th attribute of the current element.
protected  void handleCDATA()
          Deprecated.  
protected  void handleCharacters()
          Deprecated.  
protected  void handleComment()
          Deprecated.  
protected  void handleDTD()
          Deprecated.  
protected  void handleEndElement()
          Deprecated.  
protected  void handleEntityReference()
          Deprecated.  
protected  void handlePI()
          Deprecated.  
protected  void handleSpace()
          Deprecated.  
protected  void handleStartElement()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected XMLStreamReader in
Deprecated. 

out

protected XMLStreamWriter out
Deprecated. 
Constructor Detail

XMLStreamReaderToXMLStreamWriter

public XMLStreamReaderToXMLStreamWriter()
Deprecated. 
Method Detail

bridge

public void bridge(XMLStreamReader in,
                   XMLStreamWriter out)
            throws XMLStreamException
Deprecated. 
Reads one subtree and writes it out.

The XMLStreamWriter never receives a start/end document event. Those need to be written separately by the caller.

Throws:
XMLStreamException

handlePI

protected void handlePI()
                 throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleCharacters

protected void handleCharacters()
                         throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleEndElement

protected void handleEndElement()
                         throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleStartElement

protected void handleStartElement()
                           throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleAttribute

protected void handleAttribute(int i)
                        throws XMLStreamException
Deprecated. 
Writes out the i-th attribute of the current element.

Used from handleStartElement().

Throws:
XMLStreamException

handleDTD

protected void handleDTD()
                  throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleComment

protected void handleComment()
                      throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleEntityReference

protected void handleEntityReference()
                              throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleSpace

protected void handleSpace()
                    throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException

handleCDATA

protected void handleCDATA()
                    throws XMLStreamException
Deprecated. 
Throws:
XMLStreamException


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