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
IOException
public void write(T objectToWrite) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getSerializedSize()
public com.google.common.io.InputSupplier<InputStream> combineStreams()
public void writeToChannel(WritableByteChannel channel, FileSmoosher smoosher) throws IOException
IOException
Copyright © 2011–2017. All rights reserved.