Interface CompletableReader<T>
- Type Parameters:
T
- the type returned from aMessageBodyReader
.
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
-
Method Details
-
complete
Complete the reading.- Parameters:
t
- an instance of the TypeT
.- Returns:
- the complete instance of
T
.
-