public abstract class PReader extends Object implements CanReportProgress, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
closed |
protected CountingInputStream |
countingInputStream |
protected PrimitivI |
input |
protected long |
totalSize |
| Modifier | Constructor and Description |
|---|---|
protected |
PReader(File file) |
protected |
PReader(FileInputStream stream) |
protected |
PReader(InputStream stream) |
protected |
PReader(InputStream stream,
long totalSize) |
protected |
PReader(String fileName) |
protected final PrimitivI input
protected final AtomicBoolean closed
protected final CountingInputStream countingInputStream
protected final long totalSize
protected PReader(String fileName) throws IOException
IOExceptionprotected PReader(File file) throws IOException
IOExceptionprotected PReader(FileInputStream stream) throws IOException
IOExceptionprotected PReader(InputStream stream)
protected PReader(InputStream stream, long totalSize)
public double getProgress()
getProgress in interface CanReportProgresspublic boolean isFinished()
isFinished in interface CanReportProgresspublic void close()
close in interface AutoCloseableCopyright © 2018. All rights reserved.