public class IoUtil extends Object
Constructor and Description |
---|
IoUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
closeSilently(Closeable closeable)
Closes the given stream.
|
static void |
flushSilently(Flushable flushable)
Flushes the given object.
|
static File |
getFile(String filePath) |
static String |
readFileAsString(String filePath) |
static byte[] |
readInputStream(InputStream inputStream,
String inputStreamName) |
static void |
writeStringToFile(String content,
String filePath) |
public static byte[] readInputStream(InputStream inputStream, String inputStreamName)
public static void closeSilently(Closeable closeable)
Closeable.close()
, but
errors while closing are silently ignored.public static void flushSilently(Flushable flushable)
Flushable.flush()
, but
errors while flushing are silently ignored.Copyright © 2018. All rights reserved.