|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cactus.util.IoUtil
Various utility methods for manipulating IO streams.
Constructor Summary | |
IoUtil()
|
Method Summary | |
static java.lang.String |
getText(java.io.InputStream theStream)
|
static java.lang.String |
getText(java.io.InputStream theStream,
java.lang.String theCharsetName)
Read all data in an Input stream and return them as a String object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IoUtil()
Method Detail |
public static java.lang.String getText(java.io.InputStream theStream) throws java.io.IOException
java.io.IOException
getText(InputStream, String)
public static java.lang.String getText(java.io.InputStream theStream, java.lang.String theCharsetName) throws java.io.IOException
String
object.
theStream
- the input stream from which to read the datatheCharsetName
- the charset name with which to read the data
java.io.IOException
- if an error occurs during the read of data
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |