org.xvsm.remote.marshaller
Class JavaMarshaller

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

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

Author:
Christian Schreiber, Michael Proestler

Constructor Summary
JavaMarshaller()
           
 
Method Summary
 byte[] marshall(Task y)
          Marshalles an Task to the generic Typ.
 Task unmarshall(byte[] bytes)
          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

JavaMarshaller

public JavaMarshaller()
Method Detail

marshall

public byte[] marshall(Task y)
Marshalles an Task to the generic Typ.

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

unmarshall

public Task unmarshall(byte[] bytes)
Unmarshalles the generic typ into a Task Object.

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


Copyright © 2009. All Rights Reserved.