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) |
accept
public DocumentMarshallingStrategy()
public DocumentMarshallingStrategy(String path)
public Document buildDocument(String name, long size, Date lastModified, Map<String,String> params)
AbstractDocumentMarshallingStrategy
buildDocument
in class AbstractDocumentMarshallingStrategy
name
- 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
IOException
public Object read(ObjectInputStream os) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public byte[] marshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectOutputStream objectOutputStream, Object o) throws IOException
IOException
public Object unmarshal(org.kie.api.marshalling.ObjectMarshallingStrategy.Context context, ObjectInputStream objectInputStream, byte[] object, ClassLoader classLoader) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public org.kie.api.marshalling.ObjectMarshallingStrategy.Context createContext()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.