Class FSFnv1aOutputStream
java.lang.Object
java.io.OutputStream
org.tmatesoft.svn.core.internal.io.fs.index.FSFnv1aOutputStream
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class FSFnv1aOutputStream
extends java.io.OutputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FSFnv1aInterleavedChecksumCalculatorprivate final java.io.OutputStream -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
delegate
private final java.io.OutputStream delegate -
checksumCalculator
-
-
Constructor Details
-
FSFnv1aOutputStream
public FSFnv1aOutputStream(java.io.OutputStream delegate)
-
-
Method Details
-
write
public void write(int b) throws java.io.IOException - Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] data) throws java.io.IOException - Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] data, int offset, int length) throws java.io.IOException - Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Overrides:
flushin classjava.io.OutputStream- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream- Throws:
java.io.IOException
-
resetChecksum
public void resetChecksum() -
finalizeChecksum
public int finalizeChecksum() -
update
private void update(byte[] bytes, int offset, int length)
-