org.apache.axiom.om.util
Class CopyUtils

java.lang.Object
  extended by org.apache.axiom.om.util.CopyUtils

public class CopyUtils
extends Object

CopyUtils provides static utility methods that are useful for creating a copy of an OM/SOAPEnvelope tree. During the expansion, the Source tree retains its shape (OMSourcedElement nodes are not expanded). The Target tree has nodes that retain the class identity of the source node. For example, a SOAPFault in the source tree will have a SOAPFault in the target tree.


Method Summary
static SOAPEnvelope copy(SOAPEnvelope sourceEnv)
          Deprecated. This method has the same effect as calling OMInformationItem.clone(OMCloneOptions) on the source SOAPEnvelope with the following options enabled: Instead of using this method, application code should use OMInformationItem.clone(OMCloneOptions) directly and fine tune the options for the particular use case.
static void reader2writer(XMLStreamReader reader, XMLStreamWriter writer)
          Simple utility that takes an XMLStreamReader and writes it to an XMLStreamWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copy

public static SOAPEnvelope copy(SOAPEnvelope sourceEnv)
Deprecated. This method has the same effect as calling OMInformationItem.clone(OMCloneOptions) on the source SOAPEnvelope with the following options enabled: Instead of using this method, application code should use OMInformationItem.clone(OMCloneOptions) directly and fine tune the options for the particular use case.


reader2writer

public static void reader2writer(XMLStreamReader reader,
                                 XMLStreamWriter writer)
                          throws XMLStreamException
Simple utility that takes an XMLStreamReader and writes it to an XMLStreamWriter

Parameters:
reader -
writer -
Throws:
XMLStreamException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.