commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Rumland <timo.ruml...@the-cr.de>
Subject Re: [io] Should "FileUtils.writeByteArrayToFile(...)" not use a BufferedOutputStream?
Date Mon, 26 Sep 2011 08:28:48 GMT
Hello,

> In this case we call FileOutputStream.write(byte[]) so the array
> should be output in one shot.

that means, that there is no need to buffer anything, right? The bytes
get written with one call to "write( byte[] )".

So I was wrong, I thought about writing one byte after another to a
file, which must be bufferd, but this is not the case for
"FileUtils.writeByteArrayToFile(...)". The byte-array is already the
buffer itself, which gets written as a whole.

Well, thanks a lot for your help, learning never stops :)


Best regards,
Timo




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message