| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final String | |
| public static final byte[] | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static File | |
| public static void | close(AutoCloseable
the closeable to close closeable)Closes an arbitrary closable, and logs exceptions at ignore level |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | |
| public static void | copy(InputStream
the input stream to read from (until EOF) in, OutputStream the output stream to write to out)Copy Stream in to Stream out until EOF or exception. |
| public static void | |
| public static void | copy(InputStream
the stream to read from in, OutputStream the stream to write to out, long the number of bytes to copy byteCount)Copy Stream in to Stream for byteCount bytes or until EOF or exception. |
| public static void | |
| public static void | |
| public static void | |
| public static void | copyDir(Path
the source directory srcDir, Path the destination directory destDir, CopyOption... copyOptions)Copy the contents of a directory from one directory to another. |
| public static void | |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if directory is null, doesn't exist, or has no content. false if not a directory, or has contentsthe directory dir)Test if directory is empty. |
| public static byte[] | |
| public static IOException | |
| public static String | |
| public static String | Returns: the String parsed from stream (default Charset)the stream to read from (until EOF) in)Read input stream to string. |
| public static String | Returns: the String parsed from the streamthe stream to read from (until EOF) in, String the encoding to use (can be null to use default Charset) encoding)Read input stream to string. |
| public static String | Returns: the String parsed from the streamthe stream to read from (until EOF) in, Charset the Charset to use (can be null to use default Charset) encoding)Read input stream to string. |
| public static String | |
| public static long | Returns: The total bytes writtenThe GatheringByteChannel to write to out, ByteBuffer[] The buffers to write buffers, int The offset into the buffers array offset, int The length in buffers to write length)A gathering write utility wrapper. |
| bufferSize | back to summary |
|---|---|
| public static final int bufferSize | |
| CRLF | back to summary |
|---|---|
| public static final String CRLF | |
| CRLF_BYTES | back to summary |
|---|---|
| public static final byte[] CRLF_BYTES | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| IO | back to summary |
|---|---|
| private IO() | |
| asFile | back to summary |
|---|---|
| public static File asFile(Object fileObject) Convert an object to a | |
| close | back to summary |
|---|---|
| public static void close(AutoCloseable closeable) Closes an arbitrary closable, and logs exceptions at ignore level
| |
| close | back to summary |
|---|---|
| public static void close(Closeable closeable) Closes an arbitrary closable, and logs exceptions at ignore level
| |
| close | back to summary |
|---|---|
| public static void close(InputStream is) closes an input stream, and logs exceptions
| |
| close | back to summary |
|---|---|
| public static void close(OutputStream os) closes an output stream, and logs exceptions
| |
| close | back to summary |
|---|---|
| public static void close(Reader reader) closes a reader, and logs exceptions
| |
| close | back to summary |
|---|---|
| public static void close(Writer writer) closes a writer, and logs exceptions
| |
| copy | back to summary |
|---|---|
| public static void copy(InputStream in, OutputStream out) throws IOException Copy Stream in to Stream out until EOF or exception.
| |
| copy | back to summary |
|---|---|
| public static void copy(Reader in, Writer out) throws IOException Copy Reader to Writer out until EOF or exception.
| |
| copy | back to summary |
|---|---|
| public static void copy(InputStream in, OutputStream out, long byteCount) throws IOException Copy Stream in to Stream for byteCount bytes or until EOF or exception.
| |
| copy | back to summary |
|---|---|
| public static void copy(Reader in, Writer out, long byteCount) throws IOException Copy Reader to Writer for byteCount bytes or until EOF or exception.
| |
| copy | back to summary |
|---|---|
| public static void copy(File from, File to) throws IOException Copy files or directories
| |
| copyDir | back to summary |
|---|---|
| public static void copyDir(File from, File to) throws IOException | |
| copyDir | back to summary |
|---|---|
| public static void copyDir(Path srcDir, Path destDir, CopyOption... copyOptions) throws IOException Copy the contents of a directory from one directory to another.
| |
| copyFile | back to summary |
|---|---|
| public static void copyFile(File from, File to) throws IOException | |
| delete | back to summary |
|---|---|
| public static boolean delete(File file) Delete File. This delete will recursively delete directories - BE CAREFUL
| |
| delete | back to summary |
|---|---|
| public static boolean delete(Path path) | |
| isEmptyDir | back to summary |
|---|---|
| public static boolean isEmptyDir(File dir) Test if directory is empty.
| |
| readBytes | back to summary |
|---|---|
| public static byte[] readBytes(InputStream in) throws IOException | |
| rethrow | back to summary |
|---|---|
| public static IOException rethrow(Throwable cause) | |
| toString | back to summary |
|---|---|
| public static String toString(Path path, Charset charset) throws IOException Read Path to string.
| |
| toString | back to summary |
|---|---|
| public static String toString(InputStream in) throws IOException Read input stream to string.
| |
| toString | back to summary |
|---|---|
| public static String toString(InputStream in, String encoding) throws IOException Read input stream to string.
| |
| toString | back to summary |
|---|---|
| public static String toString(InputStream in, Charset encoding) throws IOException Read input stream to string.
| |
| toString | back to summary |
|---|---|
| public static String toString(Reader in) throws IOException Read input stream to string.
| |
| write | back to summary |
|---|---|
| public static long write(GatheringByteChannel out, ByteBuffer[] buffers, int offset, int length) throws IOException A gathering write utility wrapper. This method wraps a gather write with a loop that handles the limitations of some operating systems that have a limit on the number of buffers written. The method loops on the write until either all the content is written or no progress is made.
| |