public static interface FileIO.Sink<ElementT>
extends java.io.Serializable
FileIO.write()
and FileIO.writeDynamic()
. A new instance of FileIO.Sink
is created for every file being written.Modifier and Type | Method and Description |
---|---|
void |
flush()
Flushes the buffered state (if any) before the channel is closed.
|
void |
open(java.nio.channels.WritableByteChannel channel)
Initializes writing to the given channel.
|
void |
write(ElementT element)
Appends a single element to the file.
|
void open(java.nio.channels.WritableByteChannel channel) throws java.io.IOException
FileIO.Sink
instance.java.io.IOException
void write(ElementT element) throws java.io.IOException
java.io.IOException
void flush() throws java.io.IOException
java.io.IOException