org.xvsm.remote.marshaller
Class XMLMarshaller

Package class diagram package XMLMarshaller
java.lang.Object
  extended by org.xvsm.remote.marshaller.XMLMarshaller
All Implemented Interfaces:
IMarshaller<byte[]>

public class XMLMarshaller
extends java.lang.Object
implements IMarshaller<byte[]>


Constructor Summary
XMLMarshaller()
           
 
Method Summary
 byte[] marshall(Task t)
          Marshalles an Task to the generic Typ.
 Task read(byte[] xml)
           
 Task unmarshall(byte[] x)
          Unmarshalles the generic typ into a Task Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLMarshaller

public XMLMarshaller()
Method Detail

marshall

public byte[] marshall(Task t)
Description copied from interface: IMarshaller
Marshalles an Task to the generic Typ.

Specified by:
marshall in interface IMarshaller<byte[]>
Parameters:
t - The Task that should be marshalled.
Returns:
the representation of the task in the generic typ.

unmarshall

public Task unmarshall(byte[] x)
Description copied from interface: IMarshaller
Unmarshalles the generic typ into a Task Object.

Specified by:
unmarshall in interface IMarshaller<byte[]>
Parameters:
x - the generic type representation of a task.
Returns:
the task.

read

public Task read(byte[] xml)
          throws javax.xml.stream.XMLStreamException,
                 java.net.URISyntaxException,
                 java.lang.ClassNotFoundException
Throws:
javax.xml.stream.XMLStreamException
java.net.URISyntaxException
java.lang.ClassNotFoundException


Copyright © 2009. All Rights Reserved.