public class Metadata extends java.lang.Object implements ByteSerializable
ByteSerializable.Deserialize
Constructor and Description |
---|
Metadata(ProteinSequence segment,
java.lang.String name)
Constructs a Metadata item for the specified sequence segment.
|
Metadata(SerializationInputStream in) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the sequence from which the segment originates.
|
ProteinSequence |
getSegment()
Returns the sequence segment.
|
void |
serialize(SerializationOutputStream out)
Serializes this object to binary form by passing it through a
serialization stream.
|
public Metadata(ProteinSequence segment, java.lang.String name)
segment
- the sequence segmentname
- the name of the sequence from which the segment originated@ByteSerializable.Deserialize public Metadata(SerializationInputStream in) throws java.io.IOException
java.io.IOException
public void serialize(SerializationOutputStream out) throws java.io.IOException
ByteSerializable
serialize
in interface ByteSerializable
out
- stream to serialize to.java.io.IOException
public ProteinSequence getSegment()
public java.lang.String getName()