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 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.Copyright © 2018. All rights reserved.