Is double buffering ever a good idea?

Here are two lines of code from a class of mine:
InputStream in = new BufferedInputStream( socket.getInputStream(), 1024 );
BufferedReader smtpCommandLineReader = new BufferedReader(new InputStreamReader(in));


Is it good, or is it stupid, to build a BufferedReader with a BufferedInputStream? Why? Are there underlying tradeoffs?

Thanks,
Rich Hammer



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

Reply via email to