juzu.io
Interface Stream

All Known Implementing Classes:
OutputStream

public interface Stream

A stream is a consumer of chunk.

Author:
Julien Viet

Method Summary
 void close(Thread.UncaughtExceptionHandler errorHandler)
          Signal the work is done, the caller can be aware of error that were not caught.
 void provide(Chunk chunk)
          Provide a chunk.
 

Method Detail

provide

void provide(Chunk chunk)
Provide a chunk.

Parameters:
chunk - the chunk

close

void close(Thread.UncaughtExceptionHandler errorHandler)
Signal the work is done, the caller can be aware of error that were not caught. The errorHandler argument can be null.

Parameters:
errorHandler - the optional error handler


Copyright © 2014 eXo Platform SAS. All rights reserved.