org.drools.marshalling
Interface ObjectMarshallingStrategy
public interface ObjectMarshallingStrategy
accept
boolean accept(Object object)
write
void write(ObjectOutputStream os,
Object object)
throws IOException
- Throws:
IOException
read
Object read(ObjectInputStream os)
throws IOException,
ClassNotFoundException
- Throws:
IOException
ClassNotFoundException
marshal
byte[] marshal(ObjectOutputStream os,
Object object)
throws IOException
- This method is analogous to the write() method, but instead
of writing the object into an output stream, it returns
the marshalled object as a byte[].
- Parameters:
os
- the context for the marshallingobject
- the object to be marshalled
- Returns:
- the marshalled byte[] of the input object
- Throws:
IOException
unmarshal
Object unmarshal(ObjectInputStream os,
byte[] object,
ClassLoader classloader)
throws IOException,
ClassNotFoundException
- This method is analogous to the read method, but instead of reading it from an
input stream, it reads it from a byte[]
- Parameters:
os
- the context for the unmarshallingobject
- the marshalled object in a byte[]
- Returns:
- the unmarshalled Object
- Throws:
IOException
ClassNotFoundException
Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.