com.jfw.file
Class ReadStream

java.lang.Object
  extended by com.jfw.file.ReadStream

public final class ReadStream
extends java.lang.Object

Read content from an input stream.


Constructor Summary
ReadStream()
           
 
Method Summary
static byte[] getData(java.io.InputStream inputStream)
          Read all data form an input stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadStream

public ReadStream()
Method Detail

getData

public static byte[] getData(java.io.InputStream inputStream)
                      throws JFWGenericException
Read all data form an input stream.
The input stream are closed when all data are readed.

Returns:
the content readed.
Throws:
JFWGenericException