java.lang.Object | |||
↳ | java.io.InputStream | ||
↳ | java.io.FilterInputStream | ||
↳ | java.util.zip.CheckedInputStream |
An input stream that also maintains a checksum of the data being read. The checksum can then be used to verify the integrity of the input data.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterInputStream
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates an input stream using the specified Checksum.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Checksum for this input stream.
| |||||||||||
Reads a byte.
| |||||||||||
Reads into an array of bytes.
| |||||||||||
Skips specified number of bytes of input.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.io.FilterInputStream
| |||||||||||
From class
java.io.InputStream
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
|
Creates an input stream using the specified Checksum.
in | the input stream |
---|---|
cksum | the Checksum |
Returns the Checksum for this input stream.
Reads a byte. Will block if no input is available.
IOException | if an I/O error has occurred |
---|
Reads into an array of bytes. If len
is not zero, the method
blocks until some input is available; otherwise, no
bytes are read and 0
is returned.
buf | the buffer into which the data is read |
---|---|
off | the start offset in the destination array b |
len | the maximum number of bytes read |
NullPointerException | If buf is null . |
---|---|
IndexOutOfBoundsException | If off is negative,
len is negative, or len is greater than
buf.length - off |
IOException | if an I/O error has occurred |
Skips specified number of bytes of input.
n | the number of bytes to skip |
---|
IOException | if an I/O error has occurred |
---|