|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.util.IOUtils
public final class IOUtils
IO utility class.
| Field Summary | |
|---|---|
static Charset |
UTF8
UTF-8 character set. |
| Method Summary | |
|---|---|
static void |
closeQuietly(Closeable resource)
Unconditionally close a Closeable resource. |
static String |
readString(InputStream in)
Reads all data from the given stream as UTF-8 character data and closes it on completion or errors. |
static String |
readString(InputStream in,
Charset charset)
Reads all data from the given stream as character data in the given character set and closes it on completion or errors. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Charset UTF8
| Method Detail |
|---|
public static String readString(InputStream in)
throws IOException
in - Input stream containing character data.
IOException - On IO errors.
public static String readString(InputStream in,
Charset charset)
throws IOException
in - Input stream containing character data.charset - Character set of data in stream.
IOException - On IO errors.public static void closeQuietly(Closeable resource)
Closeable resource. Errors on close are ignored.
resource - Resource to close.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||