@Override
    public Long readObject(ByteBuffer data, Class c) throws IOException {
        return data.getLong();
    }
The Long serializer.

@author Lars Wesselius
jme3-networking/src/main/java/com/jme3/network/serializing/serializers/LongSerializer.java