com.icegreen.greenmail.foedus.util
Class StreamUtils

java.lang.Object
  extended by com.icegreen.greenmail.foedus.util.StreamUtils

public class StreamUtils
extends Object


Constructor Summary
StreamUtils()
           
 
Method Summary
static void copy(Reader in, Writer out)
           
static Reader limit(Reader in, long len)
          Creates a reader that will return -1 after len chars have been read.
static Reader splice(Reader one, Reader two)
           
static String toString(Reader in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamUtils

public StreamUtils()
Method Detail

toString

public static String toString(Reader in)
                       throws IOException
Throws:
IOException

copy

public static void copy(Reader in,
                        Writer out)
                 throws IOException
Throws:
IOException

limit

public static Reader limit(Reader in,
                           long len)
Creates a reader that will return -1 after len chars have been read.


splice

public static Reader splice(Reader one,
                            Reader two)