|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.jnrpe.utils.StreamManager
public class StreamManager
Utility class for handling streams.
| Constructor Summary | |
|---|---|
StreamManager()
|
|
| Method Summary | |
|---|---|
void |
closeAll()
Closes all handles streams and readers. |
InputStream |
getInputStream(File f)
Returns an InputStream on the given file |
OutputStream |
getOutputStream(File f)
Returns an OutputStream on the given file |
InputStream |
handle(InputStream in)
Handles the received InputStream and returns it. |
OutputStream |
handle(OutputStream out)
Handles the received OutputStream and returns it. |
Reader |
handle(Reader r)
Handles the received Reader and returns it |
Writer |
handle(Writer w)
Handles the received Writer and returns it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamManager()
| Method Detail |
|---|
public InputStream handle(InputStream in)
in -
public OutputStream handle(OutputStream out)
out -
public Reader handle(Reader r)
r -
public Writer handle(Writer w)
w -
public InputStream getInputStream(File f)
throws FileNotFoundException
f -
FileNotFoundException
public OutputStream getOutputStream(File f)
throws FileNotFoundException
f -
FileNotFoundExceptionpublic void closeAll()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||