public class FileReadImpl extends Object
| 构造器和说明 |
|---|
FileReadImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copyFileWithBuffer(File source,
File target)
使用FileChannel+Buffer实现文件的读取拷贝是一种极佳的方案
|
static void |
copyFileWithChannel(File source,
File target)
利用FileChannel直接实现文件的对拷,对于大文件速度特别明显
|
static void |
customBufferBufferedStreamCopy(File source,
File target)
利用Buffer实现文件的读取拷贝
|
static void |
customBufferStreamCopy(File source,
File target)
利用Buffer实现文件的读取拷贝
|
public static void copyFileWithChannel(File source, File target)
source - target - public static void copyFileWithBuffer(File source, File target)
source - target - public static void customBufferBufferedStreamCopy(File source, File target)
source - target - Copyright © 2016. All rights reserved.