SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Siddharth Kirad:
I am using BufferedOutptStream class to write byte array to a file. Is there any other way to write to the file in a more effecient way in java[?]
SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
Originally posted by Siddharth Kirad:
I didnt get ur point bcuz i am calling the same write(byte[],offset,len) method of BuffereOutptStream class which does the writing
Do u mean to say that increase the size of the buffer of a buf protected field in BuffereOutputStream class of java.io.
SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
Originally posted by Siddharth Kirad:
I was thinking to use FileOutputStream which will directly write the contents to the file b cuz i get the whole byte array from the client
SCJP1.4<br />IBM Certified System Administrator -- WebSphere Application Server V5.0 (340)
Originally posted by Dmitry Melnik:
I was told that random access file i/o on Windows (NT and younger) works noticeably faster when implemented using file-mapping API calls rather than regular file i/o API calls.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
"I'm not back." - Bill Harding, Twister
I'm not sure if I approve of this interruption. But this tiny ad checks out:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|