Package net.sf.saxon.pull
Class PullPushCopier
java.lang.Object
net.sf.saxon.pull.PullPushCopier
This class copies a document by using the pull interface to read the input document,
and the push interface to write the output document.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
PullPushCopier
Create a PullPushCopier- Parameters:
in
- a PullProvider from which events will be readout
- a Receiver to which copies of the same events will be written
-
-
Method Details
-
copy
Copy the input to the output. This method will open the output Receiver before appending to it, and will close it afterwards.- Throws:
XPathException
- if, for example, the input is not well-formed
-
append
Copy the input to the output. This method relies on the caller to open the output Receiver before use and to close it afterwards.- Throws:
XPathException
- if, for example, the input is not well-formed
-