|
||||||||||
| 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(Closeable... streams)
Close all the streams |
static byte[] |
readBytes(InputStream is)
Read the content of the given InputStream as a byte array. |
static void |
transfer(InputStream is,
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(Closeable... streams)
streams - Streams to be closed
public static void transfer(InputStream is,
OutputStream os)
throws IOException
InputStream content in the given OutputStream.
is - inputos - output
IOException - if there is a transfer error.
public static byte[] readBytes(InputStream is)
throws IOException
is - source
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 | |||||||||