我正在将数据从一个文件复制到另一个文件。
这需要更多时间。什么原因?
我的代码在这里
公共无效复制数据(输入流输入,输出流输出)抛出 IOException
{
尝试
{
in = new CipherInputStream(in, dcipher);
int numRead = 0;
字节[] buf = 新字节[512];
而 ( ( numRead = in.read( buf ) ) >= 0 )
{
out.write(buf, 0, numRead);
}
out.close();
附寄();
}
捕获(java.io.IOException e)
{
}
}