util
Class Streams

java.lang.Object
  extended by util.Streams

public final class Streams
extends Object

Utility class for dealing with streams.


Nested Class Summary
static class Streams.PipeHandler
          Controller for handling all three streams for a child process asynchronously.
 
Constructor Summary
Streams()
           
 
Method Summary
static void pipeInto(InputStream in, OutputStream out)
          Read everything from one stream into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Streams

public Streams()
Method Detail

pipeInto

public static void pipeInto(InputStream in,
                            OutputStream out)
                     throws IOException
Read everything from one stream into another.

Parameters:
in - The stream to read from.
out - The stream to write to.
Throws:
IOException - If anything goes wrong on either end.