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
IOException
public static byte[] readStreamAsByteArray(InputStream in) throws IOException
IOException
public 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
IOException
public static InputStream newRepeatableInputStream(BoundedInputStream original) throws IOException
IOException
public static Long getCRCValue(InputStream inputStream)
Copyright © 2019. All Rights Reserved.