Class XAttributeMapSerializerImpl

  • All Implemented Interfaces:
    XAttributeMapSerializer

    public class XAttributeMapSerializerImpl
    extends java.lang.Object
    implements XAttributeMapSerializer
    This class provides binary serialization of XAttributeMap instances, based on the DataInput and DataOutput interfaces.
    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      XAttributeMap deserialize​(java.io.DataInput in)
      Deserializes an attribute map from a given data source.
      void serialize​(XAttributeMap map, java.io.DataOutput out)
      Serializes an attribute map to the given output.
      • Methods inherited from class java.lang.Object

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

      • XAttributeMapSerializerImpl

        public XAttributeMapSerializerImpl()
    • Method Detail

      • serialize

        public void serialize​(XAttributeMap map,
                              java.io.DataOutput out)
                       throws java.io.IOException
        Description copied from interface: XAttributeMapSerializer
        Serializes an attribute map to the given output.
        Specified by:
        serialize in interface XAttributeMapSerializer
        Parameters:
        map - Attribute map to be serialized.
        out - Data output interface.
        Throws:
        java.io.IOException
      • deserialize

        public XAttributeMap deserialize​(java.io.DataInput in)
                                  throws java.io.IOException
        Description copied from interface: XAttributeMapSerializer
        Deserializes an attribute map from a given data source.
        Specified by:
        deserialize in interface XAttributeMapSerializer
        Parameters:
        in - Data input interface to read from.
        Returns:
        The deserialized attribute map.
        Throws:
        java.io.IOException