|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.littleshoot.util.FileInputStreamHandler
public class FileInputStreamHandler
Utility class that writes data from an InputStream to
a File.
| Constructor Summary | |
|---|---|
FileInputStreamHandler(File file)
Creates a new stream handler that will write the InputStream to the specified File. |
|
FileInputStreamHandler(File file,
WriteListener writeListener)
Creates a new stream handler that will write the InputStream to the specified File. |
|
| Method Summary | |
|---|---|
void |
handleInputStream(InputStream is)
Handles the specified InputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileInputStreamHandler(File file)
InputStream to the specified File.
file - The File instance denoting the file path
to write to.
public FileInputStreamHandler(File file,
WriteListener writeListener)
InputStream to the specified File.
file - The File instance denoting the file path
to write to.writeListener - The listener for write events.| Method Detail |
|---|
public void handleInputStream(InputStream is)
throws IOException
InputStreamHandlerInputStream. Implementors of this
method MUST call close on the InputStream when they are
done processing it.
handleInputStream in interface InputStreamHandleris - The InputStream to handle.
IOException - If there's a read error reading from the stream or
an output error while handling it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||