org.xins.common.io
Class IOReader
java.lang.Object
org.xins.common.io.IOReader
- public final class IOReader
- extends Object
Utilities methods to read input streams.
- Since:
- XINS 2.0.
- Version:
- $Revision: 1.9 $ $Date: 2007/09/18 11:21:09 $
- Author:
- Anthony Goubard
|
Method Summary |
static String |
readFully(InputStream inputStream)
Read an InputStream completly and put the content of the input stream in
a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOReader
public IOReader()
readFully
public static String readFully(InputStream inputStream)
throws IllegalArgumentException,
IOException
- Read an InputStream completly and put the content of the input stream in
a String.
- Parameters:
inputStream - the input stream to read, cannot be null.
- Returns:
- the content of the input stream using the default encoding, never
null.
- Throws:
IllegalArgumentException - if inputStream == null.
IOException - if there are some problems reading the input stream.
See http://www.xins.org/.