public class ByteBufferWriter<T> extends Object implements Closeable
| Constructor and Description |
|---|
ByteBufferWriter(IOPeon ioPeon,
String filenameBase,
ObjectStrategy<T> strategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.common.io.InputSupplier<InputStream> |
combineStreams() |
long |
getSerializedSize() |
void |
open() |
void |
write(T objectToWrite) |
void |
writeToChannel(WritableByteChannel channel,
FileSmoosher smoosher) |
public ByteBufferWriter(IOPeon ioPeon, String filenameBase, ObjectStrategy<T> strategy)
public void open()
throws IOException
IOExceptionpublic void write(T objectToWrite) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic long getSerializedSize()
public com.google.common.io.InputSupplier<InputStream> combineStreams()
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
IOExceptionCopyright © 2011–2017. All rights reserved.