public abstract class FileUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
FILE_READER_BUFFER_SIZE |
| 构造器和说明 |
|---|
FileUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static long |
copy(File src,
File dest) |
static long |
copy(File src,
File dest,
long position,
long length) |
static void |
read(File file,
LineReaderHandler handler,
String charset) |
static String |
readFileToString(File file,
String charset) |
static void |
recursiveDelete(File dir) |
static long |
transferTo(File file,
Callback callback,
BufferReaderHandler handler) |
static long |
transferTo(FileChannel fileChannel,
long len,
Callback callback,
BufferReaderHandler handler) |
static long |
transferTo(FileChannel fileChannel,
long pos,
long len,
Callback callback,
BufferReaderHandler handler) |
static long |
transferTo(File file,
long pos,
long len,
Callback callback,
BufferReaderHandler handler) |
public static final long FILE_READER_BUFFER_SIZE
public static void recursiveDelete(File dir)
public static void read(File file, LineReaderHandler handler, String charset) throws IOException
IOExceptionpublic static String readFileToString(File file, String charset) throws IOException
IOExceptionpublic static long copy(File src, File dest) throws IOException
IOExceptionpublic static long copy(File src, File dest, long position, long length) throws IOException
IOExceptionpublic static long transferTo(File file, Callback callback, BufferReaderHandler handler) throws IOException
IOExceptionpublic static long transferTo(File file, long pos, long len, Callback callback, BufferReaderHandler handler) throws IOException
IOExceptionpublic static long transferTo(FileChannel fileChannel, long len, Callback callback, BufferReaderHandler handler) throws IOException
IOExceptionpublic static long transferTo(FileChannel fileChannel, long pos, long len, Callback callback, BufferReaderHandler handler) throws IOException
IOExceptionCopyright © 2016. All rights reserved.