org.omnaest.utils.structure.table.serializer.marshaller
Class TableMarshallerCSV<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.serializer.marshaller.TableMarshallerCSV<E>
Type Parameters:
E -
All Implemented Interfaces:
Serializable, TableMarshaller<E>

public class TableMarshallerCSV<E>
extends Object
implements TableMarshaller<E>

Author:
Omnaest
See Also:
TableMarshaller, TableUnmarshallerCSV, Serialized Form

Field Summary
static String DEFAULT_DELIMITER_SEMICOLON
           
protected  String delimiter
           
protected  String encoding
           
protected  boolean writeColumnTitles
           
protected  boolean writeRowTiles
           
protected  boolean writeTableName
           
 
Constructor Summary
TableMarshallerCSV()
           
TableMarshallerCSV(boolean writeTableName, boolean writeColumnTitles, boolean writeRowTiles)
           
TableMarshallerCSV(String encoding)
           
TableMarshallerCSV(String encoding, String delimiter)
           
TableMarshallerCSV(String encoding, String delimiter, boolean writeTableName, boolean writeColumnTitles, boolean writeRowTiles)
           
 
Method Summary
 void marshal(Table<E> table, Appendable appendable)
          Marshals and appends the given Table to the given Appendable
 void marshal(Table<E> table, InputStream inputStream, OutputStream outputStream)
          Marshals the given Table into an OutputStream reading the data from the given InputStream first and using this for updates.
 void marshal(Table<E> table, OutputStream outputStream)
          Marshals the given Table into an OutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DELIMITER_SEMICOLON

public static final String DEFAULT_DELIMITER_SEMICOLON
See Also:
Constant Field Values

encoding

protected String encoding

delimiter

protected String delimiter

writeTableName

protected boolean writeTableName

writeColumnTitles

protected boolean writeColumnTitles

writeRowTiles

protected boolean writeRowTiles
Constructor Detail

TableMarshallerCSV

public TableMarshallerCSV()

TableMarshallerCSV

public TableMarshallerCSV(String encoding)
Parameters:
encoding -

TableMarshallerCSV

public TableMarshallerCSV(String encoding,
                          String delimiter)
Parameters:
encoding -
delimiter -

TableMarshallerCSV

public TableMarshallerCSV(boolean writeTableName,
                          boolean writeColumnTitles,
                          boolean writeRowTiles)
Parameters:
writeTableName -
writeColumnTitles -
writeRowTiles -

TableMarshallerCSV

public TableMarshallerCSV(String encoding,
                          String delimiter,
                          boolean writeTableName,
                          boolean writeColumnTitles,
                          boolean writeRowTiles)
Parameters:
encoding -
delimiter -
writeTableName -
writeColumnTitles -
writeRowTiles -
Method Detail

marshal

public void marshal(Table<E> table,
                    OutputStream outputStream)
Description copied from interface: TableMarshaller
Marshals the given Table into an OutputStream

Specified by:
marshal in interface TableMarshaller<E>

marshal

public void marshal(Table<E> table,
                    Appendable appendable)
Description copied from interface: TableMarshaller
Marshals and appends the given Table to the given Appendable

Specified by:
marshal in interface TableMarshaller<E>

marshal

public void marshal(Table<E> table,
                    InputStream inputStream,
                    OutputStream outputStream)
Description copied from interface: TableMarshaller
Marshals the given Table into an OutputStream reading the data from the given InputStream first and using this for updates.

Specified by:
marshal in interface TableMarshaller<E>


Copyright © 2011. All Rights Reserved.