|
JAPI 0.9.0 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.io.IOHelper
public class IOHelper
A class with helper methods for In- and Output.
| Field Summary | |
|---|---|
static int |
DEFAULT_BUF_SIZE
Default buffer size. |
| Method Summary | |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
Copies all bytes from one stream to another using a default buffer size (see DEFAULT_BUF_SIZE). |
static void |
copy(InputStream in,
OutputStream out,
int size)
Copies all bytes from one stream to another using a specified buffer size. |
static void |
copyBW(InputStream in,
OutputStream out)
Copies all bytes from one stream to another using a bytewise copy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_BUF_SIZE
| Method Detail |
|---|
public static void copy(InputStream in,
OutputStream out)
throws IOException
DEFAULT_BUF_SIZE).
in - InputStream sourceout - OutputStream destination
IOException - on i/o problems
public static void copy(InputStream in,
OutputStream out,
int size)
throws IOException
in - InputStream sourceout - OutputStream destinationsize - buffer size in bytes
IOException - on i/o problems
public static void copyBW(InputStream in,
OutputStream out)
throws IOException
in - InputStream sourceout - OutputStream destination
IOException - on i/o problems
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||