|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BeanWriter
Interface for marshalling 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 bean object to this output stream. |
void |
write(String recordName,
Object bean)
Writes a bean object to this output stream. |
Method Detail |
---|
void write(Object bean) throws BeanWriterException, BeanWriterIOException
bean
- the bean object to write
BeanWriterException
- if a record could not be identified for marshalling,
or in a few other rare (but fatal) cases
BeanWriterIOException
- if the underlying output stream throws an IOException
,
or if this writer is closedvoid write(String recordName, Object bean) throws BeanWriterException
recordName
- the record or group name bound to the bean object from the mapping filebean
- the bean object to write
BeanWriterException
- if a record could not be identified for marshalling,
or in a few other rare (but fatal) cases
BeanWriterIOException
- if the underlying output stream throws an IOException
,
or if this writer is closedvoid flush() throws BeanWriterIOException
BeanWriterIOException
- if the underlying output stream throws an IOException
,
or if this writer is closedvoid close() throws BeanWriterIOException
BeanWriterIOException
- if the underlying output stream throws an IOException
,
or if this writer is already closed
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |