public class ModifiedIO extends Object
Constructor and Description |
---|
ModifiedIO() |
Modifier and Type | Method and Description |
---|---|
static long |
copy(InputStream in,
OutputStream out) |
static long |
copy(InputStream in,
OutputStream out,
long byteCount)
Copy Stream in to Stream for byteCount bytes or until EOF or exception.
|
static long |
copy(Reader in,
Writer out) |
static long |
copy(Reader in,
Writer out,
long byteCount) |
public static long copy(InputStream in, OutputStream out) throws IOException
IOException
public static long copy(Reader in, Writer out) throws IOException
IOException
public static long copy(InputStream in, OutputStream out, long byteCount) throws IOException
in
- input streamout
- output streambyteCount
- buffer size to readIOException
- i/o exceptionpublic static long copy(Reader in, Writer out, long byteCount) throws IOException
IOException
Copyright © 2015. All rights reserved.