Object
InputStream
ProgressMonitorInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Allows to monitor
InputStream
read progress-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns in % total amount of data which was read from the stream alreadylong
Total number of byteslong
Number of bytes which was read alreadyint
read()
Methods inherited from class InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ProgressMonitorInputStream
- Throws:
FileNotFoundException
-
ProgressMonitorInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
getPercentRead
public int getPercentRead()Returns in % total amount of data which was read from the stream already -
getTotalBytesRead
public long getTotalBytesRead()Number of bytes which was read already -
getTotalBytes
public long getTotalBytes()Total number of bytes
-