Package org.jbpm.document.marshalling
Class AbstractDocumentCollectionMarshallingStrategy
- java.lang.Object
-
- org.jbpm.document.marshalling.AbstractDocumentCollectionMarshallingStrategy
-
- All Implemented Interfaces:
org.kie.api.marshalling.ObjectMarshallingStrategy
- Direct Known Subclasses:
DocumentCollectionImplMarshallingStrategy
,DocumentsMarshallingStrategy
public abstract class AbstractDocumentCollectionMarshallingStrategy extends Object implements org.kie.api.marshalling.ObjectMarshallingStrategy
Marshalling strategy definition to Marshal a collection of documents.
-
-
Constructor Summary
Constructors Constructor Description AbstractDocumentCollectionMarshallingStrategy(DocumentMarshallingStrategy docMarshallingStrategy)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DocumentCollection<? extends Document>
buildDocumentCollection()
org.kie.api.marshalling.ObjectMarshallingStrategy.Context
createContext()
byte[]
marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectOutputStream objectOutputStream, Object o)
Object
read(ObjectInputStream arg0)
Object
unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectInputStream objectInputStream, byte[] object, ClassLoader classLoader)
void
write(ObjectOutputStream arg0, Object arg1)
-
-
-
Constructor Detail
-
AbstractDocumentCollectionMarshallingStrategy
public AbstractDocumentCollectionMarshallingStrategy(DocumentMarshallingStrategy docMarshallingStrategy)
-
-
Method Detail
-
marshal
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectOutputStream objectOutputStream, Object o) throws IOException
- Specified by:
marshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
-
unmarshal
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectInputStream objectInputStream, byte[] object, ClassLoader classLoader) throws IOException, ClassNotFoundException
- Specified by:
unmarshal
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
ClassNotFoundException
-
read
public Object read(ObjectInputStream arg0) throws IOException, ClassNotFoundException
- Specified by:
read
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
ClassNotFoundException
-
write
public void write(ObjectOutputStream arg0, Object arg1) throws IOException
- Specified by:
write
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
- Throws:
IOException
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContext
in interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
buildDocumentCollection
public abstract DocumentCollection<? extends Document> buildDocumentCollection()
-
-