public class BlueObjectOutput<T>
extends java.lang.Object
implements java.io.Closeable
Constructor and Description |
---|
BlueObjectOutput(BlueWriteLock<java.nio.file.Path> writeLock,
BlueSerializer serializer) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected static <T> BlueObjectOutput<T> |
getTestOutput(java.nio.file.Path path,
BlueSerializer serializer,
java.io.DataOutputStream dataOutputStream) |
protected static java.io.DataOutputStream |
openDataOutputStream(java.io.File file) |
void |
write(T value) |
void |
writeAll(BlueObjectInput<T> input) |
void |
writeBytes(byte[] bytes) |
public BlueObjectOutput(BlueWriteLock<java.nio.file.Path> writeLock, BlueSerializer serializer) throws BlueDbException
BlueDbException
protected static <T> BlueObjectOutput<T> getTestOutput(java.nio.file.Path path, BlueSerializer serializer, java.io.DataOutputStream dataOutputStream)
public void writeBytes(byte[] bytes) throws BlueDbException
BlueDbException
public void write(T value) throws BlueDbException
BlueDbException
public void writeAll(BlueObjectInput<T> input) throws BlueDbException
BlueDbException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
protected static java.io.DataOutputStream openDataOutputStream(java.io.File file) throws BlueDbException
BlueDbException