org.omnaest.utils.structure.table.serializer.marshaller
Class TableMarshallerCSV<E>
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 -
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.