Interface ObjectQueue.Converter<T>

Type Parameters:
T - Object type.
Enclosing class:
ObjectQueue<T>

public static interface ObjectQueue.Converter<T>
Convert a byte stream to and from a concrete type.
  • Method Summary

    Modifier and Type
    Method
    Description
    from(byte[] source)
    Converts bytes to an object.
    void
    toStream(T value, OutputStream sink)
    Converts value to bytes written to the specified stream.