|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.commons.IO
public final class IO
Utility methods for IO processing.
Method Summary | |
---|---|
static void |
copy(java.io.InputStream is,
java.io.OutputStream os)
Copy from an input stream to an output stream. |
static java.lang.String |
toString(java.io.InputStream is,
java.nio.charset.Charset encoding)
Copy an input stream to a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void copy(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
is
- The InputStream
to copy from.os
- The OutputStream
to copy to.
java.io.IOException
- If a failure occurs with either stream.public static java.lang.String toString(java.io.InputStream is, java.nio.charset.Charset encoding) throws java.io.IOException
is
- The InputStream
to copy from.encoding
- The character encoding for the stream.
java.io.IOException
- If a failure occurs with either stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |