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