Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

/**
* Callback interface for generators that produce a stream to be informed when the stream has been
* closed by the client.
* closed by the client. Complies with Java's own {@link AutoCloseable} interface
*/
interface StreamGenerator
interface StreamGenerator extends AutoCloseable
{
/**
* Signal that the stream has been closed.
*/
@Override
void close()
throws IOException;
}