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.ContextcreateContext()byte[]marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectOutputStream objectOutputStream, Object o)Objectread(ObjectInputStream arg0)Objectunmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context ctx, ObjectInputStream objectInputStream, byte[] object, ClassLoader classLoader)voidwrite(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:
marshalin 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:
unmarshalin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
read
public Object read(ObjectInputStream arg0) throws IOException, ClassNotFoundException
- Specified by:
readin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOExceptionClassNotFoundException
-
write
public void write(ObjectOutputStream arg0, Object arg1) throws IOException
- Specified by:
writein interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy- Throws:
IOException
-
createContext
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
- Specified by:
createContextin interfaceorg.kie.api.marshalling.ObjectMarshallingStrategy
-
buildDocumentCollection
public abstract DocumentCollection<? extends Document> buildDocumentCollection()
-
-