public class StateMarshaller extends 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, IOException
state
- format
- config
- javax.xml.bind.JAXBException
IOException
public byte[] marshall(ModelInstance state, MarshallerConfig config) throws javax.xml.bind.JAXBException, IOException
state
- config
- javax.xml.bind.JAXBException
IOException
public byte[] marshall(ValueContent valueContent, MarshallerConfig config) throws javax.xml.bind.JAXBException, IOException
valueContent
- config
- javax.xml.bind.JAXBException
IOException
public ModelInstance unmarshall(byte[] bytes) throws javax.xml.bind.JAXBException, IOException
bytes
- javax.xml.bind.JAXBException
IOException
public SXmlEntity unmarshallValue(byte[] bytes) throws javax.xml.bind.JAXBException, IOException
bytes
- javax.xml.bind.JAXBException
IOException
public byte[] decompress(byte[] bytes) throws IOException
bytes
- IOException
public byte[] compress(byte[] bytes) throws IOException
bytes
- IOException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.