|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.util.IoUtils
Generic I/O utility methods.
Constructor Summary | |
IoUtils()
|
Method Summary | |
static void |
copy(java.io.InputStream in,
java.io.OutputStream out)
Copies an input stream to an output stream. |
static java.io.ByteArrayInputStream |
toByteArrayInputStream(java.io.ByteArrayOutputStream out)
Converts a ByteArrayOutputStream into a ByteArrayInputStream. |
static java.io.InputStream |
toInputStream(java.lang.String str)
Convert the specified string to an input stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IoUtils()
Method Detail |
public static void copy(java.io.InputStream in, java.io.OutputStream out) throws java.io.IOException
in
- an input stream; must not be nullout
- an output stream; must not be null
java.io.IOException
- if the copy failspublic static java.io.ByteArrayInputStream toByteArrayInputStream(java.io.ByteArrayOutputStream out)
out
-
public static java.io.InputStream toInputStream(java.lang.String str)
str
- a string
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |