public final class EzyInputStreams extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
static int |
EOF |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
toByteArray(InputStream stream) |
static byte[] |
toByteArray(InputStream stream,
int bufferSize) |
static List<String> |
toLines(InputStream stream) |
static List<String> |
toLines(InputStream stream,
Charset charset) |
static List<String> |
toLines(InputStream stream,
String charset) |
static String |
toString(InputStream stream,
Charset charset) |
static String |
toStringUtf8(InputStream stream) |
public static final int EOF
public static final int DEFAULT_BUFFER_SIZE
public static byte[] toByteArray(InputStream stream) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream stream, int bufferSize) throws IOException
IOExceptionpublic static String toStringUtf8(InputStream stream) throws IOException
IOExceptionpublic static String toString(InputStream stream, Charset charset) throws IOException
IOExceptionpublic static List<String> toLines(InputStream stream) throws IOException
IOExceptionpublic static List<String> toLines(InputStream stream, String charset) throws IOException
IOExceptionpublic static List<String> toLines(InputStream stream, Charset charset) throws IOException
IOExceptionCopyright © 2023 Young Monkeys. All rights reserved.