Class IOUtils
- java.lang.Object
-
- org.dizitart.no2.mvstore.compat.v1.mvstore.util.IOUtils
-
public class IOUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
closeSilently(AutoCloseable var0)
static IOException
convertToIOException(Throwable var0)
static long
copy(InputStream var0, OutputStream var1)
static long
copy(InputStream var0, OutputStream var1, long var2)
static long
copyAndClose(InputStream var0, OutputStream var1)
static long
copyAndCloseInput(InputStream var0, OutputStream var1)
static long
copyAndCloseInput(Reader var0, Writer var1, long var2)
static void
copyFiles(String var0, String var1)
static Reader
getAsciiReader(InputStream var0)
static Reader
getBufferedReader(InputStream var0)
static Writer
getBufferedWriter(OutputStream var0)
static InputStream
getInputStreamFromString(String var0)
static Reader
getReader(InputStream var0)
static byte[]
readBytesAndClose(InputStream var0, int var1)
static int
readFully(InputStream var0, byte[] var1, int var2)
static int
readFully(Reader var0, char[] var1, int var2)
static String
readStringAndClose(Reader var0, int var1)
static void
skipFully(InputStream var0, long var1)
static void
skipFully(Reader var0, long var1)
static void
trace(String var0, String var1, Object var2)
-
-
-
Method Detail
-
closeSilently
public static void closeSilently(AutoCloseable var0)
-
skipFully
public static void skipFully(InputStream var0, long var1) throws IOException
- Throws:
IOException
-
skipFully
public static void skipFully(Reader var0, long var1) throws IOException
- Throws:
IOException
-
copyAndClose
public static long copyAndClose(InputStream var0, OutputStream var1) throws IOException
- Throws:
IOException
-
copyAndCloseInput
public static long copyAndCloseInput(InputStream var0, OutputStream var1) throws IOException
- Throws:
IOException
-
copy
public static long copy(InputStream var0, OutputStream var1) throws IOException
- Throws:
IOException
-
copy
public static long copy(InputStream var0, OutputStream var1, long var2) throws IOException
- Throws:
IOException
-
copyAndCloseInput
public static long copyAndCloseInput(Reader var0, Writer var1, long var2) throws IOException
- Throws:
IOException
-
readBytesAndClose
public static byte[] readBytesAndClose(InputStream var0, int var1) throws IOException
- Throws:
IOException
-
readStringAndClose
public static String readStringAndClose(Reader var0, int var1) throws IOException
- Throws:
IOException
-
readFully
public static int readFully(InputStream var0, byte[] var1, int var2) throws IOException
- Throws:
IOException
-
readFully
public static int readFully(Reader var0, char[] var1, int var2) throws IOException
- Throws:
IOException
-
getBufferedReader
public static Reader getBufferedReader(InputStream var0)
-
getReader
public static Reader getReader(InputStream var0)
-
getBufferedWriter
public static Writer getBufferedWriter(OutputStream var0)
-
getAsciiReader
public static Reader getAsciiReader(InputStream var0)
-
getInputStreamFromString
public static InputStream getInputStreamFromString(String var0)
-
copyFiles
public static void copyFiles(String var0, String var1) throws IOException
- Throws:
IOException
-
convertToIOException
public static IOException convertToIOException(Throwable var0)
-
-