public class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
readStreamAsBytesArray(InputStream in) |
static String |
readStreamAsString(InputStream in,
String charset) |
static void |
safeClose(InputStream inputStream) |
static void |
safeClose(OutputStream outputStream) |
public static String readStreamAsString(InputStream in, String charset) throws IOException
IOExceptionpublic static byte[] readStreamAsBytesArray(InputStream in) throws IOException
IOExceptionpublic static void safeClose(InputStream inputStream)
public static void safeClose(OutputStream outputStream)
Copyright © 2024. All Rights Reserved.