X - The type of data writtenpublic abstract class BufferedFormatWriter<X> extends java.lang.Object implements FormatWriter<X>
| Constructor and Description |
|---|
BufferedFormatWriter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToBuffer(X data)
Add a record to the internal buffer.
|
void |
close()
Close the writer.
|
void |
setBufferSize(int size)
Set the buffer size.
|
void |
writeBuffer()
Write the buffer to the output destination, and ensure the information
has been added correctly
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDestination, setDestination, writeDatapublic boolean addToBuffer(X data) throws java.io.IOException
data - the data to writejava.io.IOException - if there is a problem writing files to the output
destination.public void close()
writeData() on the
bufferclose in interface FormatWriter<X>public void setBufferSize(int size)
size - the buffer sizepublic void writeBuffer()
throws java.io.IOException
java.io.IOException - if there is a problem writing files to the output
destination.