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 FSFnv1aInterleavedChecksumCalculator
private final java.io.OutputStream
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
Methods 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:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] data) throws java.io.IOException - Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
write
public void write(byte[] data, int offset, int length) throws java.io.IOException - Overrides:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in 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)
-