de.unkrig.commons.io.pipe
Interface PipeUtil.Drainer

All Known Subinterfaces:
PipeUtil.FillerAndDrainer
Enclosing class:
PipeUtil

public static interface PipeUtil.Drainer

Drains 'something' by reading data from an input stream.

See Also:
drain(InputStream), PipeUtil.temporaryStorage(FillerAndDrainer)

Method Summary
 void drain(java.io.InputStream is)
          Reads form the given input stream exactly the data that was previously written.
 

Method Detail

drain

void drain(java.io.InputStream is)
           throws java.io.IOException
Reads form the given input stream exactly the data that was previously written.

Throws:
java.io.IOException
See Also:
PipeUtil.Filler.fill(OutputStream)