public class FSFnv1aOutputStream
extends java.io.OutputStream
| Modifier and Type | Field and Description |
|---|---|
private FSFnv1aInterleavedChecksumCalculator |
checksumCalculator |
private java.io.OutputStream |
delegate |
| Constructor and Description |
|---|
FSFnv1aOutputStream(java.io.OutputStream delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
finalizeChecksum() |
void |
flush() |
void |
resetChecksum() |
private void |
update(byte[] bytes,
int offset,
int length) |
void |
write(byte[] data) |
void |
write(byte[] data,
int offset,
int length) |
void |
write(int b) |
private final java.io.OutputStream delegate
private final FSFnv1aInterleavedChecksumCalculator checksumCalculator
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void write(byte[] data,
int offset,
int length)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionpublic void resetChecksum()
public int finalizeChecksum()
private void update(byte[] bytes,
int offset,
int length)