DEFAULT_CHARACTER_SET_ENCODING
Constructor and Description |
---|
StringSource(java.lang.String str) |
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream(TransformOptions options)
Returns streaming byte-baseed representation of the Source's content.
|
static StringSource |
getInstance(java.io.InputStream in, TransformOptions options) |
java.lang.String |
getString() |
java.lang.String |
toString() |
void |
writeTo(java.io.OutputStream os, TransformOptions options)
Serializes the Source's content to a byte-based stream.
|
public java.lang.String getString()
public java.io.InputStream getInputStream(TransformOptions options) throws java.io.IOException, TransformException
Source
getInputStream
in interface Source
options
- Options used to affect the serializationjava.io.IOException
TransformException
public void writeTo(java.io.OutputStream os, TransformOptions options) throws java.io.IOException, TransformException
Source
Note that this method may involve an internal transformation, although it should not in any way change the underlying content.
writeTo
in interface Source
os
- the OutputStream to which serialized content will be writtenoptions
- TransformOptions used to affect the serializationjava.io.IOException
TransformException
public static StringSource getInstance(java.io.InputStream in, TransformOptions options) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object