org.stringtree.util
Class ReaderUtils
java.lang.Object
org.stringtree.util.ReaderUtils
public class ReaderUtils
- extends java.lang.Object
Method Summary |
static void |
close(java.io.Reader reader)
|
static java.io.BufferedReader |
makeBuffered(java.io.Reader in)
|
private static int |
readChar(java.io.Reader in)
|
static java.lang.String |
readInputStream(java.io.InputStream in)
|
static java.lang.String |
readInputStream(java.io.InputStream in,
java.lang.String charset)
|
static java.lang.String |
readReader(java.io.Reader in)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderUtils
public ReaderUtils()
makeBuffered
public static java.io.BufferedReader makeBuffered(java.io.Reader in)
readReader
public static java.lang.String readReader(java.io.Reader in)
throws java.io.IOException
- Throws:
java.io.IOException
readChar
private static int readChar(java.io.Reader in)
throws java.io.IOException
- Throws:
java.io.IOException
readInputStream
public static java.lang.String readInputStream(java.io.InputStream in,
java.lang.String charset)
throws java.io.IOException
- Throws:
java.io.IOException
readInputStream
public static java.lang.String readInputStream(java.io.InputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
close
public static void close(java.io.Reader reader)