public interface Source
Implementations of this interface may expose getter methods to get at the native underlying content of the Source. In general, this native content should be considered read-only unless the Source is no longer to be used.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_CHARACTER_SET_ENCODING
Unless otherwise specified, all sources should the following as the default character-set encoding when (un)marshalling character data.
|
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content.
|
void |
writeTo(java.io.OutputStream os, TransformOptions options)
Serializes the Source's content to a byte-based stream.
|
static final java.lang.String DEFAULT_CHARACTER_SET_ENCODING
java.io.InputStream getInputStream(TransformOptions options) throws java.io.IOException, TransformException
options - Options used to affect the serializationjava.io.IOExceptionTransformExceptionvoid writeTo(java.io.OutputStream os,
TransformOptions options)
throws java.io.IOException,
TransformException
Note that this method may involve an internal transformation, although it should not in any way change the underlying content.
os - the OutputStream to which serialized content will be writtenoptions - TransformOptions used to affect the serializationjava.io.IOExceptionTransformException