| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.parser.MarshallerImpl
public class MarshallerImpl
Default Marshaller implementation.
| Constructor Summary | |
|---|---|
| MarshallerImpl(MarshallingContext context,
               Selector layout,
               RecordMarshaller recordMarshaller)Constructs a new UnmarshallerImpl | |
| Method Summary | |
|---|---|
| protected  Object | getRecordValue()Returns the record value for the most recent marshalled bean object. | 
|  Marshaller | marshal(Object bean)Marshals a single bean object. | 
|  Marshaller | marshal(String recordName,
        Object bean)Marshals a single bean object. | 
|  String[] | toArray()Returns the most recent marshalled bean object as a String[] for csv and delimited formatted streams. | 
|  Document | toDocument()Returns the most recent marshalled bean object as a Documentfor xml
 formatted streams. | 
|  List<String> | toList()Returns the most recent marshalled bean object as a Listfor csv
 and delimited formatted streams. | 
|  String | toString()Returns the most recent marshalled bean object as a String. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public MarshallerImpl(MarshallingContext context,
                      Selector layout,
                      RecordMarshaller recordMarshaller)
context - the UnmarshallingContextlayout - the stream layoutrecordMarshaller - the RecordMarshaller for converting record text to record values| Method Detail | 
|---|
public Marshaller marshal(Object bean)
                   throws BeanWriterException
Marshaller
marshal in interface Marshallerbean - the bean object to marshal
BeanWriterException - if a record is not matched for the given bean object,
   or in some other rare (but fatal) conditions
public Marshaller marshal(String recordName,
                          Object bean)
                   throws BeanWriterException
Marshaller
marshal in interface MarshallerrecordName - the name of the record to marshalbean - the bean object to marshal
BeanWriterException - if a record is not matched for the given record name
   and bean object, or in some other rare (but fatal) conditionspublic String toString()
Marshaller
toString in interface MarshallertoString in class Object
public String[] toArray()
                 throws BeanWriterException
Marshaller
toArray in interface MarshallerBeanWriterException - if an array is not supported by the stream format
public List<String> toList()
                    throws BeanWriterException
MarshallerList for csv
 and delimited formatted streams.
toList in interface MarshallerList of fields
BeanWriterException - if an array is not supported by the stream format
public Document toDocument()
                    throws BeanWriterException
MarshallerDocument for xml
 formatted streams.
toDocument in interface MarshallerDocument
BeanWriterException - if Document is not supported by the stream formatprotected Object getRecordValue()
| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||