|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.stream.fixedlength.FixedLengthWriter
public class FixedLengthWriter
A FixedLengthWriter is used to write records to fixed length
flat file or output stream. A fixed length record is represented using
the String class.
| Constructor Summary | |
|---|---|
FixedLengthWriter(Writer out)
Constructs a new FixedLegthWriter. |
|
FixedLengthWriter(Writer out,
String recordTerminator)
Constructs a new FixedLegthWriter. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the output stream. |
void |
flush()
Flushes the output stream. |
void |
write(Object value)
Writes a record object to this output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedLengthWriter(Writer out)
out - the output stream to write to
public FixedLengthWriter(Writer out,
String recordTerminator)
out - the output stream to write torecordTerminator - the text used to terminate a record| Method Detail |
|---|
public void write(Object value)
throws IOException,
RecordIOException
RecordWriter
write in interface RecordWritervalue - the record object to write
IOException - if an I/O error occurs writing the record to the stream
RecordIOException
public void flush()
throws IOException
RecordWriter
flush in interface RecordWriterIOException - if an I/O error occurs flushing the stream
public void close()
throws IOException
RecordWriter
close in interface RecordWriterIOException - 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 | ||||||||