public class BufferedChecksum
extends java.lang.Object
implements java.util.zip.Checksum
Checksum with an internal buffer
to speed up checksum calculations.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFERSIZE
Default buffer size: 256
|
| Constructor and Description |
|---|
BufferedChecksum(java.util.zip.Checksum in)
Create a new BufferedChecksum with
DEFAULT_BUFFERSIZE |
BufferedChecksum(java.util.zip.Checksum in,
int bufferSize)
Create a new BufferedChecksum with the specified bufferSize
|
| Modifier and Type | Method and Description |
|---|---|
long |
getValue() |
void |
reset() |
void |
update(byte[] b,
int off,
int len) |
void |
update(int b) |
public static final int DEFAULT_BUFFERSIZE
public BufferedChecksum(java.util.zip.Checksum in)
DEFAULT_BUFFERSIZEpublic BufferedChecksum(java.util.zip.Checksum in,
int bufferSize)
public void update(int b)
update in interface java.util.zip.Checksumpublic void update(byte[] b,
int off,
int len)
update in interface java.util.zip.Checksumpublic long getValue()
getValue in interface java.util.zip.Checksumpublic void reset()
reset in interface java.util.zip.ChecksumCopyright © 2000–2025 The Apache Software Foundation. All rights reserved.