Interface CompletableReader<T>

Type Parameters:
T - the type returned from a MessageBodyReader.

public interface CompletableReader<T>
A MessageBodyReader may implement this interface to signal that reading from the underlying input stream can be fully completed.

This is useful in scenarios where an instance of the type will be processed after the input stream, from which it was read, has been closed.

Author:
Paul Sandoz
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Complete the reading.
  • Method Details

    • complete

      T complete(T t)
      Complete the reading.
      Parameters:
      t - an instance of the Type T.
      Returns:
      the complete instance of T.