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

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

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

Author:
Omnaest
See Also:
TableMarshaller, Serialized Form

Field Summary
protected  String encoding
           
 
Constructor Summary
TableMarshallerXML()
           
TableMarshallerXML(String encoding)
           
 
Method Summary
protected  XMLDataContainer<E> createXMLDataContainerFromTableContent(Table<E> table)
          Creates a XMLDataContainer from the Table content
 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

encoding

protected String encoding
Constructor Detail

TableMarshallerXML

public TableMarshallerXML()

TableMarshallerXML

public TableMarshallerXML(String encoding)
Parameters:
encoding -
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>

createXMLDataContainerFromTableContent

protected XMLDataContainer<E> createXMLDataContainerFromTableContent(Table<E> table)
Creates a XMLDataContainer from the Table content

Returns:

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.