public class DocumentMarshallingStrategy extends AbstractDocumentMarshallingStrategy
| Constructor and Description |
|---|
DocumentMarshallingStrategy() |
DocumentMarshallingStrategy(String path) |
| Modifier and Type | Method and Description |
|---|---|
Document |
buildDocument(String name,
long size,
Date lastModified,
Map<String,String> params)
Creates a valid Document instance with the data received.
|
org.kie.api.marshalling.ObjectMarshallingStrategy.Context |
createContext() |
byte[] |
marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectOutputStream objectOutputStream,
Object o) |
Object |
read(ObjectInputStream os) |
Object |
unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectInputStream objectInputStream,
byte[] object,
ClassLoader classLoader) |
void |
write(ObjectOutputStream os,
Object object) |
acceptpublic DocumentMarshallingStrategy()
public DocumentMarshallingStrategy(String path)
public Document buildDocument(String name, long size, Date lastModified, Map<String,String> params)
AbstractDocumentMarshallingStrategybuildDocument in class AbstractDocumentMarshallingStrategyname - The document name.size - The size of the document content.lastModified - The last modified date of the document.params - A Map that contain params for the document creation.public void write(ObjectOutputStream os, Object object) throws IOException
IOExceptionpublic Object read(ObjectInputStream os) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context,
ObjectOutputStream objectOutputStream,
Object o)
throws IOException
IOExceptionpublic Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream objectInputStream, byte[] object, ClassLoader classLoader) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.