Package com.appslandia.common.utils
Class IOUtils
- java.lang.Object
-
- com.appslandia.common.utils.IOUtils
-
public class IOUtils extends java.lang.Object- Author:
- Loc Ha
-
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcloseQuietly(java.io.Closeable closeable)static voidcopy(byte[] src, int copyLength, java.io.OutputStream os)static intcopy(java.io.InputStream is, java.io.OutputStream os)static intcopy(java.io.Reader r, java.io.Writer w)static java.io.InputStreamnonClosing(java.io.InputStream in)static java.io.OutputStreamnonClosing(java.io.OutputStream out)static java.io.ReadernonClosing(java.io.Reader r)static java.io.WriternonClosing(java.io.Writer w)static java.util.List<java.lang.String>readAllLines(java.io.BufferedReader r)static byte[]toByteArray(java.io.InputStream is)static java.lang.StringtoString(java.io.InputStream is, java.lang.String charsetName)static java.lang.StringtoString(java.io.Reader r)
-
-
-
Method Detail
-
copy
public static int copy(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public static void copy(byte[] src, int copyLength, java.io.OutputStream os) throws java.io.IOException- Throws:
java.io.IOException
-
copy
public static int copy(java.io.Reader r, java.io.Writer w) throws java.io.IOException- Throws:
java.io.IOException
-
toByteArray
public static byte[] toByteArray(java.io.InputStream is) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public static java.lang.String toString(java.io.Reader r) throws java.io.IOException- Throws:
java.io.IOException
-
toString
public static java.lang.String toString(java.io.InputStream is, java.lang.String charsetName) throws java.io.IOException- Throws:
java.io.IOException
-
readAllLines
public static java.util.List<java.lang.String> readAllLines(java.io.BufferedReader r) throws java.io.IOException- Throws:
java.io.IOException
-
closeQuietly
public static void closeQuietly(java.io.Closeable closeable)
-
nonClosing
public static java.io.InputStream nonClosing(java.io.InputStream in)
-
nonClosing
public static java.io.OutputStream nonClosing(java.io.OutputStream out)
-
nonClosing
public static java.io.Reader nonClosing(java.io.Reader r)
-
nonClosing
public static java.io.Writer nonClosing(java.io.Writer w)
-
-