Class StreamUtils
- java.lang.Object
-
- com.icegreen.greenmail.foedus.util.StreamUtils
-
public class StreamUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StreamUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copy(java.io.Reader in, java.io.Writer out)
static java.io.Reader
limit(java.io.Reader in, long len)
Creates a reader that will return -1 afterlen
chars have been read.static java.io.Reader
splice(java.io.Reader one, java.io.Reader two)
static java.lang.String
toString(java.io.Reader in)
-
-
-
Method Detail
-
toString
public static java.lang.String toString(java.io.Reader in) throws java.io.IOException
- Throws:
java.io.IOException
-
copy
public static void copy(java.io.Reader in, java.io.Writer out) throws java.io.IOException
- Throws:
java.io.IOException
-
limit
public static java.io.Reader limit(java.io.Reader in, long len)
Creates a reader that will return -1 afterlen
chars have been read.
-
splice
public static java.io.Reader splice(java.io.Reader one, java.io.Reader two)
-
-