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.OutputStream
java.io.IOException
public void write(byte[] data) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] data, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException
public void resetChecksum()
public int finalizeChecksum()
private void update(byte[] bytes, int offset, int length)