org.codehaus.xfire.util
Class STAXUtils

java.lang.Object
  extended by org.codehaus.xfire.util.STAXUtils

public class STAXUtils
extends java.lang.Object

Common StAX utilities.

Since:
Oct 26, 2004
Author:
Dan Diephouse

Constructor Summary
STAXUtils()
           
 
Method Summary
static void copy(javax.xml.stream.XMLStreamReader reader, javax.xml.stream.XMLStreamWriter writer)
          Copies the reader to the writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STAXUtils

public STAXUtils()
Method Detail

copy

public static void copy(javax.xml.stream.XMLStreamReader reader,
                        javax.xml.stream.XMLStreamWriter writer)
                 throws javax.xml.stream.XMLStreamException
Copies the reader to the writer. The start and end document methods must be handled on the writer manually. TODO: if the namespace on the reader has been declared previously to where we are in the stream, this probably won't work.

Parameters:
reader -
writer -
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2004 Codehaus. All Rights Reserved.