Package 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:
Result
public class Stax2FileResult extends Stax2ReferentialResult
Simple implementation ofStax2ReferentialResult
, which refers to the specific file.
-
-
Field Summary
-
Fields inherited from class org.codehaus.stax2.io.Stax2Result
mEncoding, mPublicId, mSystemId
-
Fields inherited from interface javax.xml.transform.Result
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
-
-
Constructor Summary
Constructors Constructor Description Stax2FileResult(File f)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
constructOutputStream()
This method creates anOutputStream
via which underlying output target can be written to.Writer
constructWriter()
This method creates aWriter
via which underlying output target can be written to.File
getFile()
-
Methods inherited from class org.codehaus.stax2.io.Stax2Result
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
-
-
-
-
Constructor Detail
-
Stax2FileResult
public Stax2FileResult(File f)
-
-
Method Detail
-
constructWriter
public Writer constructWriter() throws IOException
Description copied from class:Stax2Result
This method creates aWriter
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 classStax2ReferentialResult
- Throws:
IOException
-
constructOutputStream
public OutputStream constructOutputStream() throws IOException
Description copied from class:Stax2Result
This method creates anOutputStream
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 classStax2ReferentialResult
- Throws:
IOException
-
getFile
public File getFile()
-
-