public class IOUtils extends Object
| 构造器和说明 |
|---|
IOUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
checkFile(File file) |
static Long |
getCRCValue(InputStream inputStream) |
static InputStream |
newRepeatableInputStream(BoundedInputStream original) |
static InputStream |
newRepeatableInputStream(InputStream original) |
static byte[] |
readStreamAsByteArray(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[] readStreamAsByteArray(InputStream in) throws IOException
IOExceptionpublic static void safeClose(InputStream inputStream)
public static void safeClose(OutputStream outputStream)
public static boolean checkFile(File file)
public static InputStream newRepeatableInputStream(InputStream original) throws IOException
IOExceptionpublic static InputStream newRepeatableInputStream(BoundedInputStream original) throws IOException
IOExceptionpublic static Long getCRCValue(InputStream inputStream)
Copyright © 2020. All Rights Reserved.