|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.util.io.Stream
public class Stream
This class provides support for stream copy capabilities
| Constructor Summary | |
|---|---|
Stream()
|
|
| Method Summary | |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
Copy an inputstream into an outputstream without closing the streams and with the default buffer size of Short.MAX_VALUE (32767 bytes) |
static void |
copy(InputStream in,
OutputStream out,
boolean finalize)
Copy an inputstream into an outputstream with the default buffer size of Short.MAX_VALUE (32767 bytes). |
static void |
copy(InputStream in,
OutputStream out,
boolean finalize,
int bufSize)
Copy an inputstream into an outputstream with the specified buffer size. |
static void |
copy(InputStream in,
OutputStream out,
int bufSize)
Copy an inputstream into an outputstream without closing the streams and with the specified buffer size. |
static void |
first(InputStream in,
OutputStream out,
int n)
Read the first n bytes from the InputStream to the OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Stream()
| Method Detail |
|---|
public static void copy(InputStream in,
OutputStream out,
boolean finalize,
int bufSize)
throws IOException
in - InputStream object (could also be buffered)out - OutputStream objectfinalize - true if both streams should be closed after the copybufSize - size of the copy buffer
IOException
public static void first(InputStream in,
OutputStream out,
int n)
throws IOException
in - InputStream object (could also be buffered)out - OutputStream objectn - number of bytes to read (max. length: Short.MAX_VALUE)
IOException
public static void copy(InputStream in,
OutputStream out)
throws IOException
in - out -
IOException
public static void copy(InputStream in,
OutputStream out,
boolean finalize)
throws IOException
in - out -
IOException
public static void copy(InputStream in,
OutputStream out,
int bufSize)
throws IOException
in - out -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||