public class OptimizedCheckpointOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
Constructor and Description |
---|
OptimizedCheckpointOutputStream(File file,
MessageDigest digest) |
OptimizedCheckpointOutputStream(File file,
MessageDigest digest,
int bufferSize)
Constructor used for benchmarking.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(int b) |
flush, write, write
public OptimizedCheckpointOutputStream(File file, MessageDigest digest) throws IOException
file
- where the checkpoint will be writtendigest
- to ensure uncorrupted dataIOException
- propagates wrapped output stream exceptionspublic OptimizedCheckpointOutputStream(File file, MessageDigest digest, int bufferSize) throws IOException
file
- where the checkpoint will be writtendigest
- to ensure uncorrupted databufferSize
- the buffer size that the output stream should useIOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2023. All Rights Reserved.