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.JAXBException
IOException
public byte[] marshall(Object state) throws javax.xml.bind.JAXBException, IOException
state
- javax.xml.bind.JAXBException
IOException
public Object unmarshall(byte[] bytes) throws javax.xml.bind.JAXBException, IOException
bytes
- javax.xml.bind.JAXBException
IOException
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.