あるファイルから別のファイルにデータをコピーしています。
もっと時間がかかります。どういう理由ですか?
私のコードはここにあります
public void copyData( InputStream in, OutputStream out ) は IOException をスローします
{
試す
{
in = 新しい CipherInputStream( in, dcipher );
int numRead = 0;
バイト[] buf = 新しいバイト[512];
while ( ( numRead = in.read( buf ) ) >= 0 )
{
out.write( buf, 0, numRead );
}
out.close();
in.close();
}
キャッチ ( java.io.IOException e )
{
}
}