Class SequenceSerializer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.HashMap<java.lang.String,​NonceSequence> deserialize​(java.lang.String contents)
      Deserialize sequences from XML string.
      java.lang.String serialize​(java.util.HashMap<java.lang.String,​NonceSequence> sequences)
      Serialize the sequences to an XML string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SequenceSerializer

        public SequenceSerializer()
    • Method Detail

      • serialize

        public java.lang.String serialize​(java.util.HashMap<java.lang.String,​NonceSequence> sequences)
        Serialize the sequences to an XML string.
        Specified by:
        serialize in interface INonceSequenceSerializer
        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

        public java.util.HashMap<java.lang.String,​NonceSequence> deserialize​(java.lang.String contents)
        Deserialize sequences from XML string.
        Specified by:
        deserialize in interface INonceSequenceSerializer
        Parameters:
        contents - The contents containing the nonce sequences.
        Returns:
        The deserialized sequences
        Throws:
        SequenceException - Thrown if there is an error with the nonce sequence