public class FileCopyProgressInputStream extends FilterInputStream
FileCopyProgressMonitor while bytes are
read.in| Constructor and Description |
|---|
FileCopyProgressInputStream(FileCopyProgressListener listener,
InputStream inputStream,
int size)
Constructor with monitor, stream and file size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, mark, markSupportedpublic FileCopyProgressInputStream(FileCopyProgressListener listener, InputStream inputStream, int size)
listener - Listener to inform about progress - Can be null
but makes not much sense to use this class in this case.inputStream - Input stream to use.size - Size of the input stream.public final int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic final int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic final int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic final long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic final void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic final void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2013 Future Invent Informationsmanagement GmbH, Hamburg (Germany). All Rights Reserved.