public class InputStreamCarbonCopy extends InputStream
| Constructor and Description |
|---|
InputStreamCarbonCopy(InputStream is,
OutputStream os) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close()
Closes this input stream and releases any system resources associated with the input stream, output stream
is not closed.
|
void |
copyStream()
Copies the rest of input stream, unless this object is already broken.
|
static void |
copyStream(InputStream is,
OutputStream os) |
Throwable |
getCause() |
boolean |
isBroken() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
public InputStreamCarbonCopy(InputStream is, OutputStream os)
public static void copyStream(InputStream is, OutputStream os) throws IOException
IOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOException - if an I/O error occurspublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void copyStream()
public boolean isBroken()
public Throwable getCause()
Copyright © 2016 Egothor. All Rights Reserved.