|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RecordWriter
A RecordWriter is used to write records to an output stream. The class used to represent a record is implementation specific and dependent on the format of the output stream. For example, a delimited stream may use String[] objects to define records, while a fixed length based stream may simply use String.
Method Summary | |
---|---|
void |
close()
Closes the output stream. |
void |
flush()
Flushes the output stream. |
void |
write(Object record)
Writes a record object to this output stream. |
Method Detail |
---|
void write(Object record) throws IOException
record
- the record object to write
IOException
- if an I/O error occurs writing the record to the streamvoid flush() throws IOException
IOException
- if an I/O error occurs flushing the streamvoid close() throws IOException
IOException
- if an I/O error occurs closing the stream
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |