|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.marre.util.IOUtil
Contains various utiity functions related to io operations.
Method Summary | |
static int |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copy data from in to out using a default temporary buffer. |
static int |
copy(java.io.InputStream in,
java.io.OutputStream out,
byte[] workbuff)
Copy data from in to out using the workbuff as temporary storage. |
static int |
copy(java.io.InputStream in,
java.io.OutputStream out,
int workbuffsize)
Copy data from in to out using a temporary buffer of workbuffsize bytes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int copy(java.io.InputStream in, java.io.OutputStream out, byte[] workbuff) throws java.io.IOException
in
- stream to read fromout
- stream to write toworkbuff
- buffer to use as temporary storage while copying
java.io.IOException
- if an I/O error occurspublic static int copy(java.io.InputStream in, java.io.OutputStream out, int workbuffsize) throws java.io.IOException
in
- stream to read fromout
- stream to write toworkbuffsize
- how large the work buffer should be
java.io.IOException
- if an I/O error occurspublic static int copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- stream to read fromout
- stream to write to
java.io.IOException
- if an I/O error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |