|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Source
An instance of this interface represents source content in some form. Sources may be transformed into other Sources via a Transformer instance. At minimum, a Source must "natively" support conversion to a byte-based stream via the two methods defined in this interface. Source may or may not take into account various TransformOptions (e.g. character-set encoding) during serialization.
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.
Field Summary | |
---|---|
static String |
DEFAULT_CHARACTER_SET_ENCODING
Unless otherwise specified, all sources should the following as the default character-set encoding when (un)marshalling character data. |
Method Summary | |
---|---|
InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content. |
void |
writeTo(OutputStream os,
TransformOptions options)
Serializes the Source's content to a byte-based stream. |
Field Detail |
---|
static final String DEFAULT_CHARACTER_SET_ENCODING
Method Detail |
---|
InputStream getInputStream(TransformOptions options) throws IOException, TransformException
options
- Options used to affect the serialization
IOException
TransformException
void writeTo(OutputStream os, TransformOptions options) throws IOException, TransformException
os
- the OutputStream to which serialized content will be writtenoptions
- TransformOptions used to affect the serialization
IOException
TransformException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |