|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCharStreamSourceUtil
public final class CharStreamSourceUtil
Contains static utility methods for manipulating the way data is retrieved from a CharStreamSource
object.
See the documentation of the CharStreamSource
class for details.
Method Summary | |
---|---|
static java.io.Reader |
getReader(CharStreamSource charStreamSource)
Returns a Reader that reads the output of the specified CharStreamSource . |
static java.lang.String |
toString(CharStreamSource charStreamSource)
Returns the output of the specified CharStreamSource as a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.io.Reader getReader(CharStreamSource charStreamSource)
Reader
that reads the output of the specified CharStreamSource
.
The current implementation of this method simply returns new StringReader(
toString(charStreamSource)
)
,
but a future version may implement this method in a more memory efficient manner.
charStreamSource
- the character stream source producing the output.
Reader
that reads the output of the specified CharStreamSource
.public static java.lang.String toString(CharStreamSource charStreamSource)
CharStreamSource
as a string.
The current implementation of this method simply returns new StringReader(
toString(charStreamSource)
)
,
but a future version may implement this method in a more memory efficient manner, for example by utilising a temporary file.
charStreamSource
- the character stream source producing the output.
CharStreamSource
as a string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |