📅  最后修改于: 2020-11-14 10:51:00             🧑  作者: Mango
java.util.zip.CheckedInputStream类是一个输入流,还维护着正在读取的数据的校验和。然后可以使用校验和来验证输入数据的完整性。
以下是java.util.zip.CheckedInputStream类的声明-
public class CheckedInputStream
extends FilterInputStream
Sr.No. | Constructor & Description |
---|---|
1 |
CheckedInputStream(InputStream in, Checksum cksum) Creates an input stream using the specified Checksum. |
Sr.No. | Method & Description |
---|---|
1 | Checksum getChecksum()
Returns the Checksum for this input stream. |
2 | int read()
Reads a byte. |
3 | int read(byte[] buf, int off, int len)
Reads into an array of bytes. |
4 | long skip(long n)
Skips specified number of bytes of input. |
此类从以下类继承方法-