|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ibisph.util.StreamLib
public abstract class StreamLib
StreamLib is an abstract library class with odd ball streams methods.
| Constructor Summary | |
|---|---|
StreamLib()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getContentAndClose(java.io.InputStream inputStream)
Captures the specified input stream's contents to a string. |
static int |
inputToOutputAndClose(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Streams input stream's contents to the output stream. |
static int |
writeAndClose(java.io.OutputStream outputStream,
byte[] content)
Writes the bytes to the output stream and closes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamLib()
| Method Detail |
|---|
public static java.lang.String getContentAndClose(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - Stream to capture.
java.io.IOException - Stream related.
public static int inputToOutputAndClose(java.io.InputStream inputStream,
java.io.OutputStream outputStream)
throws java.io.IOException
inputStream - Source input stream.outputStream - Destination output stream.
java.io.IOException - Associated with stream operations.
public static int writeAndClose(java.io.OutputStream outputStream,
byte[] content)
throws java.io.IOException
content - Bytes to be written to the output stream.outputStream - Destination output stream.
java.io.IOException - Associated with stream operations.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||