> But suppose I am going to open the connection, make one call to
> "optThingy.write(myBigString)", then close the connection.  If I'm
> *always* going to use this idiom, does a BufferedWriter serve any
> purpose?  Is it just overhead in this case?

It's just overhead, and the BufferWriter docs actually say as much,
arguably, although it's certainly not as straightforward.

http://java.sun.com/j2se/1.4.1/docs/api/java/io/BufferedWriter.html

     Without buffering, each invocation of a print() method would
     cause characters to be converted into bytes that would then be
     written immediately to the file, which can be very inefficient.

-- 
James Manning <http://www.sublogic.com/james/>
GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7  9C8E A0BF B026 EEBB F6E4

_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org

Reply via email to