public class StateMarshaller
extends java.lang.Object
| Constructor and Description |
|---|
StateMarshaller(StateType type)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] bytes)
Compresses the given data.
|
byte[] |
decompress(byte[] bytes)
Returns the state data, decompressed by the selected loader
(e.g.
|
byte[] |
marshall(ModelInstance state,
boolean format,
MarshallerConfig config)
Saves a model instance state to a byte array.
|
byte[] |
marshall(ModelInstance state,
MarshallerConfig config)
Saves a model instance state to a byte array.
|
byte[] |
marshall(ValueContent valueContent,
MarshallerConfig config)
Saves a value content to a byte array.
|
ModelInstance |
unmarshall(byte[] bytes)
Restores a model instance state from a byte array.
|
SXmlEntity |
unmarshallValue(byte[] bytes)
Restores a model instance state from a byte array.
|
public StateMarshaller(StateType type)
type - public byte[] marshall(ModelInstance state, boolean format, MarshallerConfig config) throws javax.xml.bind.JAXBException, java.io.IOException
state - format - config - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic byte[] marshall(ModelInstance state, MarshallerConfig config) throws javax.xml.bind.JAXBException, java.io.IOException
state - config - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic byte[] marshall(ValueContent valueContent, MarshallerConfig config) throws javax.xml.bind.JAXBException, java.io.IOException
valueContent - config - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic ModelInstance unmarshall(byte[] bytes) throws javax.xml.bind.JAXBException, java.io.IOException
bytes - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic SXmlEntity unmarshallValue(byte[] bytes) throws javax.xml.bind.JAXBException, java.io.IOException
bytes - javax.xml.bind.JAXBExceptionjava.io.IOExceptionpublic byte[] decompress(byte[] bytes)
throws java.io.IOException
bytes - java.io.IOExceptionpublic byte[] compress(byte[] bytes)
throws java.io.IOException
bytes - java.io.IOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.