|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.vt.middleware.crypt.io.IOHelper
public final class IOHelper
Utility class with methods for common IO operations.
| Method Summary | |
|---|---|
static byte[] |
read(FileChannel channel)
Reads all data from the given file channel. |
static byte[] |
read(InputStream in)
Reads all data from a stream of unknown length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] read(InputStream in)
throws IOException
in - Input stream to read.
IOException - On read errors.
public static byte[] read(FileChannel channel)
throws IOException
channel - File channel to read.
IOException - On read errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||