Deprecated
No longer used.
skip and delegates to read instead.
Some implementations of InputStream implement InputStream#skip in a way that throws an exception if the stream is not seekable -
System. is known to behave that way. For such a stream it is impossible to invoke skip at all and you have to read from the stream (and
discard the data read) instead. Skipping is potentially much faster than reading so we do want to invoke skip when possible. We provide this class so
you can wrap your own InputStream in it if you encounter problems with skip throwing an exception.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public long | skip(final long
the number of bytes to be skipped. n)Overrides java. n bytes of data from the
input stream.
|
| SKIP_BUFFER | back to summary |
|---|---|
| private static final byte[] SKIP_BUFFER | |
| SKIP_BUFFER_SIZE | back to summary |
|---|---|
| private static final int SKIP_BUFFER_SIZE | |
| SkipShieldingInputStream | back to summary |
|---|---|
| public SkipShieldingInputStream(final InputStream in) | |
| skip | back to summary |
|---|---|
| public long skip(final long n) throws IOException Overrides java. Doc from java. Skips over and discards
| |