Package org.drools.core.marshalling
Class SerializablePlaceholderResolverStrategy
java.lang.Object
org.drools.core.marshalling.SerializablePlaceholderResolverStrategy
- All Implemented Interfaces:
ObjectMarshallingStrategy
public class SerializablePlaceholderResolverStrategy
extends Object
implements ObjectMarshallingStrategy
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classNested classes/interfaces inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy
ObjectMarshallingStrategy.Context -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic intbyteArrayToInt(byte[] b) intgetIndex()static byte[]intToByteArray(int value) byte[]marshal(ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object) voidsetIndex(int index) toString()unmarshal(ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader) voidwrite(ObjectOutputStream os, Object object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kie.api.marshalling.ObjectMarshallingStrategy
getName
-
Constructor Details
-
SerializablePlaceholderResolverStrategy
-
-
Method Details
-
getIndex
public int getIndex() -
setIndex
public void setIndex(int index) -
read
- Specified by:
readin interfaceObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
write
- Specified by:
writein interfaceObjectMarshallingStrategy- Throws:
IOException
-
accept
- Specified by:
acceptin interfaceObjectMarshallingStrategy
-
marshal
public byte[] marshal(ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object) throws IOException - Specified by:
marshalin interfaceObjectMarshallingStrategy- Throws:
IOException
-
unmarshal
public Object unmarshal(ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader) throws IOException, ClassNotFoundException - Specified by:
unmarshalin interfaceObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
createContext
- Specified by:
createContextin interfaceObjectMarshallingStrategy
-
toString
-
intToByteArray
public static byte[] intToByteArray(int value) -
byteArrayToInt
public static int byteArrayToInt(byte[] b)
-