Package org.analogweb.util
Class IOUtils
- java.lang.Object
-
- org.analogweb.util.IOUtils
-
public final class IOUtils extends Object
- Author:
- y2k2mt
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description IOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeQuietly(Closeable closeable)
static int
copy(InputStream input, OutputStream output)
static int
copy(InputStream input, OutputStream output, int bufferSize)
static void
copy(ReadableByteChannel src, WritableByteChannel dest)
static void
copy(ReadableByteChannel src, WritableByteChannel dest, int bufferSize)
static int
copyQuietly(InputStream input, OutputStream output)
static String
toString(InputStream in)
static String
toString(Reader reader)
static String
toString(Reader reader, int bufferSize)
-
-
-
Field Detail
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
closeQuietly
public static void closeQuietly(Closeable closeable)
-
copyQuietly
public static int copyQuietly(InputStream input, OutputStream output)
-
copy
public static int copy(InputStream input, OutputStream output) throws IOException
- Throws:
IOException
-
copy
public static int copy(InputStream input, OutputStream output, int bufferSize) throws IOException
- Throws:
IOException
-
toString
public static String toString(InputStream in) throws IOException
- Throws:
IOException
-
toString
public static String toString(Reader reader) throws IOException
- Throws:
IOException
-
toString
public static String toString(Reader reader, int bufferSize) throws IOException
- Throws:
IOException
-
copy
public static void copy(ReadableByteChannel src, WritableByteChannel dest) throws IOException
- Throws:
IOException
-
copy
public static void copy(ReadableByteChannel src, WritableByteChannel dest, int bufferSize) throws IOException
- Throws:
IOException
-
-