public class MessagePackSerialization extends Object implements MmtfStructureSerializationInterface
MmtfStructure
serializer / deserializer.Constructor and Description |
---|
MessagePackSerialization()
Constructor for the
MessagePackSerialization class. |
Modifier and Type | Method and Description |
---|---|
MmtfStructure |
deserialize(InputStream inputStream)
Deserialize an
MmtfStructure from an input stream. |
void |
serialize(MmtfStructure mmtfStructure,
OutputStream outputStream)
Serialize an
MmtfStructure to a generic output stream. |
public MessagePackSerialization()
MessagePackSerialization
class.
Generates ObjectMapper
and sets to include non-null.public MmtfStructure deserialize(InputStream inputStream)
MmtfStructureSerializationInterface
MmtfStructure
from an input stream.deserialize
in interface MmtfStructureSerializationInterface
inputStream
- the inputstream to deserializepublic void serialize(MmtfStructure mmtfStructure, OutputStream outputStream)
MmtfStructureSerializationInterface
MmtfStructure
to a generic output stream.serialize
in interface MmtfStructureSerializationInterface
mmtfStructure
- the compressed dataoutputStream
- the output stream to write toCopyright © 2015–2016 RCSB PDB. All rights reserved.