| Modifier and Type | Field and Description |
|---|---|
| private final long | |
| private final LongProperty | |
| private final LongProperty |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | |
| public long | |
| public long | |
| public void | mark(int readlimit)
Overrides java. Marks the current position in this input stream. |
| public boolean | markSupported()
Overrides java. Tests if this input stream supports the |
| public LongProperty | |
| public int | |
| public int | read(byte[] b, int off, int len)
Overrides java. Reads up to |
| public void | reset()
Overrides java. Repositions this stream to the position at the time the
|
| public long | skip(long n)
Overrides java. Skips over and discards |
| public LongProperty | |
| private long |
| maxNumBytes | back to summary |
|---|---|
| private final long maxNumBytes | |
| progress | back to summary |
|---|---|
| private final LongProperty progress | |
| totalNumBytesRead | back to summary |
|---|---|
| private final LongProperty totalNumBytesRead | |
| ProgressInputStream | back to summary |
|---|---|
| public ProgressInputStream(InputStream in, long maxNumBytes) | |
| getMaxNumBytes | back to summary |
|---|---|
| public long getMaxNumBytes() | |
| getProgress | back to summary |
|---|---|
| public long getProgress() | |
| getTotalNumBytesRead | back to summary |
|---|---|
| public long getTotalNumBytesRead() | |
| mark | back to summary |
|---|---|
| public void mark(int readlimit) Overrides java. Doc from java. Marks the current position in this input stream. A subsequent
call to the
The
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the
| |
| progressProperty | back to summary |
|---|---|
| public LongProperty progressProperty() | |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Doc from java. Reads the next byte of data from the input stream. The value byte is
returned as an
| |
| read | back to summary |
|---|---|
| public int read(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Reads up to
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Repositions this stream to the position at the time the
Stream marks are intended to be used in situations where you need to read ahead a little to see what's in the stream. Often this is most easily done by invoking some general parser. If the stream is of the type handled by the parse, it just chugs along happily. If the stream is not of that type, the parser should toss an exception when it fails. If this happens within readlimit bytes, it allows the outer code to reset the stream and try another parser.
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |
| totalNumBytesReadProperty | back to summary |
|---|---|
| public LongProperty totalNumBytesReadProperty() | |
| updateProgress | back to summary |
|---|---|
| private long updateProgress(long numBytesRead) | |