|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.strutsme.common.io.StreamTools
public final class StreamTools
Contains methods to read a string from a stream and write a string to a stream.
The reason for the added magic test is that it enables a fast finding of mistakes. Otherwise for example an OutOfMemoryError is much harder to diagnose.
| Constructor Summary | |
|---|---|
StreamTools()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
readStreamData(java.io.InputStream is)
Reads a string from the given stream. |
static void |
writeStreamData(java.io.OutputStream os,
java.lang.String data)
Writes a string into the given stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamTools()
| Method Detail |
|---|
public static java.lang.String readStreamData(java.io.InputStream is)
throws java.io.IOException
is - the stream to read from
java.io.IOException - in case of an error in the underlying stream
public static void writeStreamData(java.io.OutputStream os,
java.lang.String data)
throws java.io.IOException
os - the stream to write intodata - the string
java.io.IOException - in case of an error in the underlying stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||