public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(InputStream sourceInputStream)
Get bytes from given input stream.
|
static byte[] |
getBytesFromNetwork(String targetURL) |
static InputStream |
getInputStreamFromNetwork(String targetURL) |
static boolean |
write(byte[] sourceBytes,
OutputStream destinationOutputStream)
Write source bytes into destination output stream.
|
static boolean |
write(InputStream sourceInputStream,
OutputStream destinationOutputStream)
Write source input stream bytes into destination output stream.
|
public static InputStream getInputStreamFromNetwork(String targetURL) throws IOException
IOExceptionpublic static byte[] getBytesFromNetwork(String targetURL) throws IOException
IOExceptionpublic static byte[] getBytes(InputStream sourceInputStream) throws IOException
sourceInputStream - Source inputStream object to be handled.IOExceptionpublic static boolean write(InputStream sourceInputStream, OutputStream destinationOutputStream) throws IOException
sourceInputStream - input stream to be handled.destinationOutputStream - output stream to be handled.IOExceptionpublic static boolean write(byte[] sourceBytes,
OutputStream destinationOutputStream)
throws IOException
sourceBytes - bytes to be handled.destinationOutputStream - destination output stream to be handled.IOExceptionCopyright © 2014. All rights reserved.