public class FileUtils
extends java.lang.Object
构造器和说明 |
---|
FileUtils() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
clearFile(java.lang.String filePath) |
static boolean |
deleteFileIfExist(java.lang.String filePath) |
static void |
intercept(java.lang.String filePath,
long offset,
long size) |
static java.io.File[] |
listFile(java.io.File file) |
static void |
saveInputStreamToTmpFile(java.io.InputStream stream,
java.io.File file,
long offset,
long size) |
static java.lang.String |
tempCache(java.io.InputStream inputStream) |
public static void saveInputStreamToTmpFile(java.io.InputStream stream, java.io.File file, long offset, long size) throws java.io.IOException
java.io.IOException
public static java.lang.String tempCache(java.io.InputStream inputStream) throws CosXmlClientException
public static void intercept(java.lang.String filePath, long offset, long size) throws java.io.IOException
java.io.IOException
public static boolean deleteFileIfExist(java.lang.String filePath)
public static boolean clearFile(java.lang.String filePath) throws java.io.IOException
java.io.IOException
public static java.io.File[] listFile(java.io.File file)