com.atlassian.modzdetector
Class IOUtils
java.lang.Object
com.atlassian.modzdetector.IOUtils
public class IOUtils
- extends java.lang.Object
A few utility methods for I/O. These are copied from commons-io and are
reproduced here in the interest of minimizing external dependencies.
|
Method Summary |
static void |
closeQuietly(java.io.InputStream input)
|
static int |
copy(java.io.InputStream input,
java.io.OutputStream output)
|
static long |
copyLarge(java.io.InputStream input,
java.io.OutputStream output)
|
static byte[] |
toByteArray(java.io.InputStream input)
|
static java.lang.String |
toString(java.io.InputStream input)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOUtils
public IOUtils()
closeQuietly
public static void closeQuietly(java.io.InputStream input)
toByteArray
public static byte[] toByteArray(java.io.InputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
copy
public static int copy(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
copyLarge
public static long copyLarge(java.io.InputStream input,
java.io.OutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public static java.lang.String toString(java.io.InputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2011 Atlassian. All Rights Reserved.