Checksum
| Modifier and Type | Field and Description |
|---|---|
| private Checksum |
| Access | Constructor and Description |
|---|---|
| public | CheckedInputStream(InputStream
the input stream in, Checksum the Checksum cksum)Creates an input stream using the specified Checksum. |
| Modifier and Type | Method and Description |
|---|---|
| public Checksum | |
| public int | Returns: the byte read, or -1 if the end of the stream is reached.Overrides java. Reads a byte. |
| public int | Returns: the actual number of bytes read, or -1 if the end of the stream is reached.the buffer into which the data is read buf, int the start offset in the destination array off, int bthe maximum number of bytes read len)Overrides java. Reads into an array of bytes. |
| public long | Returns: the actual number of bytes skippedthe number of bytes to skip n)Overrides java. Skips specified number of bytes of input. |
| cksum | back to summary |
|---|---|
| private Checksum cksum | |
| CheckedInputStream | back to summary |
|---|---|
| public CheckedInputStream(InputStream in, Checksum cksum) Creates an input stream using the specified Checksum.
| |
| getChecksum | back to summary |
|---|---|
| public Checksum getChecksum() Returns the Checksum for this input stream.
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Overrides java. Reads a byte. Will block if no input is available.
| |
| read | back to summary |
|---|---|
| public int read(byte[] buf, int off, int len) throws IOException Overrides java. Reads into an array of bytes. If
| |
| skip | back to summary |
|---|---|
| public long skip(long n) throws IOException Overrides java. Skips specified number of bytes of input.
| |