Class Serializers.ShortSerializer

  • Enclosing class:
    Serializers

    public static final class Serializers.ShortSerializer
    extends java.lang.Object
    Serializes the given short to 2 bytes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShortSerializer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short deserialize​(byte[] bytes)  
      short deserialize​(byte[] bytes, int offset)  
      byte[] serialize​(short value)  
      void serialize​(short value, byte[] bytes, int offset)  
      • Methods inherited from class java.lang.Object

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

      • ShortSerializer

        public ShortSerializer()
    • Method Detail

      • serialize

        public byte[] serialize​(short value)
      • serialize

        public void serialize​(short value,
                              byte[] bytes,
                              int offset)
      • deserialize

        public short deserialize​(byte[] bytes)
      • deserialize

        public short deserialize​(byte[] bytes,
                                 int offset)