Package org.drools.core.marshalling
Class SerializablePlaceholderResolverStrategy
- java.lang.Object
-
- org.drools.core.marshalling.SerializablePlaceholderResolverStrategy
-
- All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy
public class SerializablePlaceholderResolverStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classSerializablePlaceholderResolverStrategy.SerializablePlaceholderStrategyContext
-
Constructor Summary
Constructors Constructor Description SerializablePlaceholderResolverStrategy(org.kie.api.marshalling.ObjectMarshallingStrategyAcceptor acceptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(Object object)static intbyteArrayToInt(byte[] b)org.kie.api.marshalling.ObjectMarshallingStrategy.ContextcreateContext()intgetIndex()static byte[]intToByteArray(int value)byte[]marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object)Objectread(ObjectInputStream os)voidsetIndex(int index)StringtoString()Objectunmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader)voidwrite(ObjectOutputStream os, Object object)
-
-
-
Method Detail
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
read
public Object read(ObjectInputStream os) throws IOException, ClassNotFoundException
- Specified by:
readin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
write
public void write(ObjectOutputStream os, Object object) throws IOException
- Specified by:
writein interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOException
-
accept
public boolean accept(Object object)
- Specified by:
acceptin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
marshal
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream os, Object object) throws IOException- Specified by:
marshalin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOException
-
unmarshal
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream is, byte[] object, ClassLoader classloader) throws IOException, ClassNotFoundException
- Specified by:
unmarshalin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContextin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
intToByteArray
public static byte[] intToByteArray(int value)
-
byteArrayToInt
public static int byteArrayToInt(byte[] b)
-
-