|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.util.CopyUtil
Utility methods for copying data from input to output streams.
Constructor Summary | |
CopyUtil()
|
Method Summary | |
static int |
copy(java.io.InputStream from,
java.io.OutputStream to)
|
static int |
copy(java.io.InputStream from,
java.io.OutputStream to,
int blockSize)
Copy data from an input to an output stream in blocks of a given size. |
static byte[] |
readBytes(java.io.InputStream in)
Read data from an input stream into a byte array by copying it into a ByteArrayOutputStream. |
static java.lang.String |
readString(java.io.InputStream in)
Read data from an input stream into a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CopyUtil()
Method Detail |
public static int copy(java.io.InputStream from, java.io.OutputStream to) throws java.io.IOException
java.io.IOException
public static int copy(java.io.InputStream from, java.io.OutputStream to, int blockSize) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static java.lang.String readString(java.io.InputStream in) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |