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

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

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

Author:
Omnaest
See Also:
TableUnmarshaller, Serialized Form

Field Summary
protected static String delimiterColumn
           
protected static String delimiterRow
           
protected static String delimiterTableTitle
           
protected static String delimiterTitleColumn
           
 
Constructor Summary
TableUnmarshallerPlainText()
           
 
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

delimiterRow

protected static final String delimiterRow
See Also:
Constant Field Values

delimiterColumn

protected static final String delimiterColumn
See Also:
Constant Field Values

delimiterTitleColumn

protected static final String delimiterTitleColumn
See Also:
Constant Field Values

delimiterTableTitle

protected static final String delimiterTableTitle
See Also:
Constant Field Values
Constructor Detail

TableUnmarshallerPlainText

public TableUnmarshallerPlainText()
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.