|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanWriter
Interface for writers capable of writing bean objects to an output stream.
A BeanWriter is created using a StreamFactory and a mapping file.
StreamFactory
Method Summary | |
---|---|
void |
close()
Closes this output stream. |
void |
flush()
Flushes this output stream. |
void |
write(Object bean)
Writes a Java bean object to this output stream. |
void |
write(String recordName,
Object bean)
Writes a Java bean object to this output stream. |
Method Detail |
---|
void write(Object bean) throws BeanWriterException
bean
- the bean object to write
BeanWriterException
- if an I/O error or other fatal error is caughtvoid write(String recordName, Object bean) throws BeanWriterException
recordName
- the name of the record definition for formatting the bean objectbean
- the bean object to write
BeanWriterException
- if an I/O error or other fatal error is caughtvoid flush() throws BeanWriterIOException
BeanIOException
- if the IOException is thrown when the output
stream is flushed
BeanWriterIOException
void close() throws BeanWriterIOException
BeanIOException
- if the IOException is thrown when the output
stream is closed
BeanWriterIOException
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |