Package com.mku.salmon.sequence
Class SequenceSerializer
java.lang.Object
com.mku.salmon.sequence.SequenceSerializer
- All Implemented Interfaces:
INonceSequenceSerializer
Serializes sequences.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(String contents) Deserialize sequences from XML string.serialize(HashMap<String, NonceSequence> sequences) Serialize the sequences to an XML string.
-
Constructor Details
-
SequenceSerializer
public SequenceSerializer()
-
-
Method Details
-
serialize
Serialize the sequences to an XML string.- Specified by:
serializein interfaceINonceSequenceSerializer- Parameters:
sequences- The sequences to convert to text.- Returns:
- The serialized contents
- Throws:
SequenceException- Thrown if there is an error with the nonce sequence
-
deserialize
Deserialize sequences from XML string.- Specified by:
deserializein interfaceINonceSequenceSerializer- Parameters:
contents- The contents containing the nonce sequences.- Returns:
- The deserialized sequences
- Throws:
SequenceException- Thrown if there is an error with the nonce sequence
-