|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.janrufmonitor.util.io.Serializer
public class Serializer
This class provides support for serializing framework objects into String and Stream and vice versa.
| Constructor Summary | |
|---|---|
Serializer()
|
|
| Method Summary | |
|---|---|
static byte[] |
toByteArray(ICall call)
Serializes a call object into an byte array. |
static byte[] |
toByteArray(ICaller caller)
Serializes a caller object into an byte array. |
static ICall |
toCall(byte[] call,
IRuntime runtime)
Deserializes a byte array stream into an call object. |
static ICaller |
toCaller(byte[] caller,
IRuntime runtime)
Deserializes a byte array stream into an caller object. |
static InputStream |
toInputStream(ICall call)
Serializes a call object into an inputstream. |
static InputStream |
toInputStream(ICaller caller)
Serializes a caller object into an inputstream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Serializer()
| Method Detail |
|---|
public static byte[] toByteArray(ICaller caller)
throws SerializerException
caller - caller to be serialized
SerializerException
public static InputStream toInputStream(ICaller caller)
throws SerializerException
caller - caller to be serialized
SerializerException
public static ICaller toCaller(byte[] caller,
IRuntime runtime)
throws SerializerException
caller - caller as a byte array representation.runtime - runtime to used
SerializerException
public static byte[] toByteArray(ICall call)
throws SerializerException
call - call to be serialized
SerializerException
public static InputStream toInputStream(ICall call)
throws SerializerException
call - call to be serialized
SerializerException
public static ICall toCall(byte[] call,
IRuntime runtime)
throws SerializerException
call - call as a byte array representation.runtime - runtime to used
SerializerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||