public class StreamKit extends Object
| Modifier and Type | Method and Description |
|---|---|
static EnoaBinary |
binary(InputStream stream) |
static EnoaBinary |
binary(InputStream stream,
Charset charset) |
static byte[] |
bytes(InputStream stream) |
static void |
close(AutoCloseable... closeables) |
static void |
close(boolean skip,
AutoCloseable... closeables) |
static void |
close(boolean skip,
Closeable... closeables) |
static void |
close(Closeable... closeables) |
static String |
string(byte[] bytes,
Charset charset) |
static String |
string(ByteBuffer binary,
Charset charset) |
static String |
string(InputStream stream,
Charset charset) |
public static String string(InputStream stream, Charset charset) throws IOException
IOExceptionpublic static String string(ByteBuffer binary, Charset charset)
public static EnoaBinary binary(InputStream stream, Charset charset) throws IOException
IOExceptionpublic static EnoaBinary binary(InputStream stream) throws IOException
IOExceptionpublic static byte[] bytes(InputStream stream) throws IOException
IOExceptionpublic static void close(Closeable... closeables)
public static void close(boolean skip,
Closeable... closeables)
public static void close(AutoCloseable... closeables)
public static void close(boolean skip,
AutoCloseable... closeables)
Copyright © 2018. All rights reserved.