public class StreamUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_INPUT_STREAM_ENCODING |
static int |
DEFAULT_STREAM_CAPTURE_LIMIT |
protected static Logger |
log |
| Constructor and Description |
|---|
StreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyReaderToWriter(Reader reader,
Writer writer,
int chunkSize,
boolean resolve) |
static void |
copyStream(InputStream in,
OutputStream out,
int chunkSize) |
static InputStream |
dontClose(InputStream stream) |
static Reader |
dontClose(Reader reader) |
static OutputStream |
getOutputStream(Object target) |
static String |
readerToString(Reader reader,
String endOfLineString) |
public static final String DEFAULT_INPUT_STREAM_ENCODING
public static final int DEFAULT_STREAM_CAPTURE_LIMIT
protected static Logger log
public static OutputStream getOutputStream(Object target) throws IOException
IOExceptionpublic static InputStream dontClose(InputStream stream)
public static String readerToString(Reader reader, String endOfLineString) throws IOException
IOExceptionpublic static void copyStream(InputStream in, OutputStream out, int chunkSize) throws IOException
IOExceptionpublic static void copyReaderToWriter(Reader reader, Writer writer, int chunkSize, boolean resolve) throws IOException
IOExceptionCopyright © 2023 Frank!Framework. All rights reserved.