|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.manipulator.util.Streams
public class Streams
Streams
is a utility class that helps to manipulate streams.
Method Summary | |
---|---|
static void |
close(java.io.Closeable... streams)
Close all the streams |
static byte[] |
readBytes(java.io.InputStream is)
Read the content of the given InputStream as a byte array. |
static void |
transfer(java.io.InputStream is,
java.io.OutputStream os)
Transfer the given InputStream content in the given OutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void close(java.io.Closeable... streams)
streams
- Streams to be closedpublic static void transfer(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
InputStream
content in the given OutputStream
.
is
- inputos
- output
java.io.IOException
- if there is a transfer error.public static byte[] readBytes(java.io.InputStream is) throws java.io.IOException
is
- source
java.io.IOException
- if stream's content cannot be read/written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |