public class OsMarshaller extends Object
| Constructor and Description |
|---|
OsMarshaller()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
marshall(Object state)
Saves a model instance state to a byte array.
|
byte[] |
marshall(Object state,
boolean format)
Saves a model instance state to a byte array.
|
Object |
unmarshall(byte[] bytes)
Restores a model instance state from a byte array.
|
public byte[] marshall(Object state, boolean format) throws javax.xml.bind.JAXBException, IOException
state - format - javax.xml.bind.JAXBExceptionIOExceptionpublic byte[] marshall(Object state) throws javax.xml.bind.JAXBException, IOException
state - javax.xml.bind.JAXBExceptionIOExceptionpublic Object unmarshall(byte[] bytes) throws javax.xml.bind.JAXBException, IOException
bytes - javax.xml.bind.JAXBExceptionIOExceptionCopyright © 2007-2020 Whitestein Technologies. All Rights Reserved.