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
Fields Modifier and Type Field Description private FSFnv1aInterleavedChecksumCalculator
checksumCalculator
private java.io.OutputStream
delegate
-
Constructor Summary
Constructors Constructor Description FSFnv1aOutputStream(java.io.OutputStream delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
delegate
private final java.io.OutputStream delegate
-
checksumCalculator
private final FSFnv1aInterleavedChecksumCalculator checksumCalculator
-
-
Method Detail
-
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)
-
-