org.codehaus.stax2.io
Class Stax2FileResult
java.lang.Object
org.codehaus.stax2.io.Stax2Result
org.codehaus.stax2.io.Stax2ReferentialResult
org.codehaus.stax2.io.Stax2FileResult
- All Implemented Interfaces:
- javax.xml.transform.Result
public class Stax2FileResult
- extends Stax2ReferentialResult
Simple implementation of Stax2ReferentialResult
, which refers
to the specific file.
Fields inherited from interface javax.xml.transform.Result |
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING |
Method Summary |
java.io.OutputStream |
constructOutputStream()
This method creates an OutputStream via which underlying output
target can be written to. |
java.io.Writer |
constructWriter()
This method creates a Writer via which underlying output
target can be written to. |
java.io.File |
getFile()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Stax2FileResult
public Stax2FileResult(java.io.File f)
constructWriter
public java.io.Writer constructWriter()
throws java.io.IOException
- Description copied from class:
Stax2Result
- This method creates a
Writer
via which underlying output
target can be written to. Note that caller is responsible for
closing that Writer when it is done reading it.
- Specified by:
constructWriter
in class Stax2ReferentialResult
- Throws:
java.io.IOException
constructOutputStream
public java.io.OutputStream constructOutputStream()
throws java.io.IOException
- Description copied from class:
Stax2Result
- This method creates an
OutputStream
via which underlying output
target can be written to. Note that caller is responsible for
closing that OutputStream when it is done reading it
- Specified by:
constructOutputStream
in class Stax2ReferentialResult
- Throws:
java.io.IOException
getFile
public java.io.File getFile()