public final class IOUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable closeable)
Null safe close of the given
Closeable. |
static void |
closeQuietly(Closeable closeable)
Null safe close of the given
Closeable suppressing any exception. |
static byte[] |
toByteArray(InputStream input) |
static void |
unmap(ByteBuffer buf)
Unmap memory mapped byte buffers.
|
public static void close(Closeable closeable) throws IOException
Closeable.closeable - to be closedIOExceptionpublic static void closeQuietly(Closeable closeable)
Closeable suppressing any exception.closeable - to be closedpublic static byte[] toByteArray(InputStream input) throws IOException
input - IOExceptionpublic static void unmap(ByteBuffer buf)
buf - Copyright © 2018 sejda. All rights reserved.