| java.lang.Object org.h2.util.IOUtils
IOUtils | public class IOUtils (Code) | | This utility class contains input/output functions.
|
Method Summary | |
public static void | closeSilently(OutputStream out) | public static void | closeSilently(InputStream in) | public static void | closeSilently(Reader reader) | public static void | closeSilently(Writer writer) | public static long | copy(InputStream in, OutputStream out) | public static long | copyAndClose(InputStream in, OutputStream out) | public static long | copyAndCloseInput(InputStream in, OutputStream out) | public static long | copyAndCloseInput(Reader in, Writer out) | public static Reader | getAsciiReader(InputStream x) | public static InputStream | getInputStream(String s) | public static InputStream | getInputStream(Reader x) | public static Reader | getReader(InputStream in) | public static Reader | getReader(String s) | public static byte[] | readBytesAndClose(InputStream in, int length) | public static int | readFully(InputStream in, byte[] buffer, int off, int max) Read the given number of bytes to the buffer. | public static int | readFully(Reader in, char[] buffer, int max) | public static String | readStringAndClose(Reader in, int length) | public static void | skipFully(InputStream in, long skip) | public static void | skipFully(Reader reader, long skip) |
closeSilently | public static void closeSilently(Reader reader)(Code) | | |
closeSilently | public static void closeSilently(Writer writer)(Code) | | |
readFully | public static int readFully(InputStream in, byte[] buffer, int off, int max) throws IOException(Code) | | Read the given number of bytes to the buffer.
Parameters: in - the input stream Parameters: buffer - the output buffer Parameters: off - the offset in the buffer Parameters: max - the number of bytes to read at most the number of bytes read |
|
|