public class StreamUtils extends Object
| Constructor and Description |
|---|
StreamUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
close(Closeable closeable) |
static void |
close(ResultSet rs) |
static long |
copy(InputStream from,
OutputStream to) |
static byte[] |
toByteArray(InputStream in) |
static String |
toString(InputStream in) |
public static final Charset UTF_8
public static String toString(InputStream in) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream in) throws IOException
IOExceptionpublic static long copy(InputStream from, OutputStream to) throws IOException
IOExceptionpublic static void close(Closeable closeable)
public static void close(ResultSet rs)
Copyright © 2020. All rights reserved.