org.omnaest.utils.structure.table.serializer.unmarshaller
Class TableUnmarshallerCSV<E>

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

public class TableUnmarshallerCSV<E>
extends Object
implements TableUnmarshaller<E>

Author:
Omnaest
See Also:
TableMarshallerCSV, TableUnmarshaller, Serialized Form

Field Summary
static String DEFAULT_DELIMITER_SEMICOLON
           
protected  String delimiter
           
protected  String encoding
           
protected  boolean hasColumnTitles
           
protected  boolean hasRowTitles
           
protected  boolean hasTableName
           
 
Constructor Summary
TableUnmarshallerCSV()
           
TableUnmarshallerCSV(boolean hasTableName, boolean hasColumnTitles, boolean hasRowTitles)
           
TableUnmarshallerCSV(String encoding)
           
TableUnmarshallerCSV(String encoding, String delimiter)
           
TableUnmarshallerCSV(String encoding, String delimiter, boolean hasTableName, boolean hasColumnTitles, boolean hasRowTitles)
           
 
Method Summary
 void unmarshal(Table<E> table, CharSequence charSequence)
          Unmarshalls the given Table instance from a given CharSequence.
 void unmarshal(Table<E> table, InputStream inputStream)
          Unmarshals the given Table from an InputStream.
 
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

hasTableName

protected boolean hasTableName

hasColumnTitles

protected boolean hasColumnTitles

hasRowTitles

protected boolean hasRowTitles
Constructor Detail

TableUnmarshallerCSV

public TableUnmarshallerCSV()

TableUnmarshallerCSV

public TableUnmarshallerCSV(String encoding)
Parameters:
encoding -

TableUnmarshallerCSV

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

TableUnmarshallerCSV

public TableUnmarshallerCSV(boolean hasTableName,
                            boolean hasColumnTitles,
                            boolean hasRowTitles)
Parameters:
hasTableName -
hasColumnTitles -
hasRowTitles -

TableUnmarshallerCSV

public TableUnmarshallerCSV(String encoding,
                            String delimiter,
                            boolean hasTableName,
                            boolean hasColumnTitles,
                            boolean hasRowTitles)
Parameters:
encoding -
delimiter -
hasTableName -
hasColumnTitles -
hasRowTitles -
Method Detail

unmarshal

public void unmarshal(Table<E> table,
                      InputStream inputStream)
Description copied from interface: TableUnmarshaller
Unmarshals the given Table from an InputStream. The given Table instance is cleared before the unmarshal process.

Specified by:
unmarshal in interface TableUnmarshaller<E>

unmarshal

public void unmarshal(Table<E> table,
                      CharSequence charSequence)
Description copied from interface: TableUnmarshaller
Unmarshalls the given Table instance from a given CharSequence. This will clean the Table instance before.

Specified by:
unmarshal in interface TableUnmarshaller<E>
See Also:
#unmarshal(Table, CharSequence, String)


Copyright © 2011. All Rights Reserved.