@Override
  public T read(ByteBuffer binary) throws ClassNotFoundException, SerializerException {
    try {
      try (ObjectInputStream oin = getObjectInputStream(new ByteBufferInputStream(binary))) {
        @SuppressWarnings("unchecked")
        T value = (T) oin.readObject();
        return value;
      }
    } catch (IOException e) {
      throw new SerializerException(e);
    }
  }
@ Override public T read ( ByteBuffer binary ) throws ClassNotFoundException , SerializerException { try { try ( ObjectInputStream oin = getObjectInputStream ( new ByteBufferInputStream ( binary ) ) ) { @ SuppressWarnings ( "unchecked" ) T value = ( T ) oin . readObject ( ) ; return value ; } } catch ( IOException e ) { throw new SerializerException ( e ) ; } }
{@inheritDoc}