|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.javasoft.io.Streams
public class Streams
Helper class with static methods related to input/output streams
| Method Summary | |
|---|---|
static void |
transfer(InputStream src,
OutputStream dst)
Reads from src and writes to dst, using a
byte buffer of size 1024. |
static void |
transfer(InputStream src,
OutputStream dst,
byte[] buffer)
Reads from src and writes to dst, using
the given byte buffer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void transfer(InputStream src,
OutputStream dst)
throws IOException
src and writes to dst, using a
byte buffer of size 1024.
src - source input stream to read fromdst - destination output stream to write to
IOException - if reading from the input stream or writing to
the output stream throws such an exception
public static void transfer(InputStream src,
OutputStream dst,
byte[] buffer)
throws IOException
src and writes to dst, using
the given byte buffer.
src - source input stream to read fromdst - destination output stream to write tobuffer - the byte buffer to use for the byte transfer
IOException - if reading from the input stream or writing to
the output stream throws such an exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||