Package org.codehaus.stax2.io
Class Stax2BlockResult
java.lang.Object
org.codehaus.stax2.io.Stax2Result
org.codehaus.stax2.io.Stax2BlockResult
- All Implemented Interfaces:
Result
This is the mid-level abstract base class for
Stax2Result
s
that an be used to write to in-memory (low-level) data structures,
such as byte and char arrays, StringBuffers and so forth.
The main reason for using such a result object (instead of constructing
wrapper Readers or InputStreams) is that concrete implementations
usually also allow more direct access to the underlying data, so
that stream reader implementations may be able to do more optimal
access.-
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 -
Method Summary
Modifier and TypeMethodDescriptionabstract OutputStream
This method creates anOutputStream
via which underlying output target can be written to.abstract Writer
This method creates aWriter
via which underlying output target can be written to.Methods inherited from class org.codehaus.stax2.io.Stax2Result
getEncoding, getPublicId, getSystemId, setEncoding, setPublicId, setSystemId
-
Constructor Details
-
Stax2BlockResult
protected Stax2BlockResult()
-
-
Method Details
-
constructWriter
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 classStax2Result
- Throws:
IOException
-
constructOutputStream
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 classStax2Result
- Throws:
IOException
-