Re: Interactive tracing ...
- From: Andreas Leitgeb <avl@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: 07 Apr 2008 18:08:58 GMT
Lew <lew@xxxxxxxxxxxxx> wrote:
Mark Space wrote:
Andreas Leitgeb wrote:The Stream classes may be slightly older, in that it took all the way until
Especially finding the right stacking of streams and readers is somethingThis is perennial complaint of mine as well.
that would have taken me a lot of time to get right - Thanks for saving me
that work! :-)
In general, the Stream classes are older, ...
Java 1.1 [1] until they introduced Readers and Writers, but by no means does
that mean that Streams are deficient or no longer relevant. (What
"deficiencies" were found in Streams, anyway?)
I guess he means the unlucky decision to add a (since deprecated) readLine()
to the *InputStream-family.
The real difference, and the important one, is that Streams handle bytes andSo far it's clear, but it's not trivially obvious which *Reader class
Readers/Writers handle characters and their encodings.
can be wrapped on what *Stream class, and what interims-wrappers I need
to be finally able to read a whole line (->BufferedReader) from System.in .
I love the Scanner, though. Just pass it a File or System.in or a
String, and you get all the tokens you want.
.
- References:
- Interactive tracing ...
- From: Andreas Leitgeb
- Re: Interactive tracing ...
- From: Knute Johnson
- Re: Interactive tracing ...
- From: Andreas Leitgeb
- Re: Interactive tracing ...
- From: Mark Space
- Re: Interactive tracing ...
- From: Lew
- Interactive tracing ...
- Prev by Date: Re: How can I save ResultSet to the file
- Next by Date: Re: How can I save ResultSet to the file
- Previous by thread: Re: Interactive tracing ...
- Next by thread: Cheap Girard Perregaux Seahawk II Watches Replica - Girard Perregaux Watches Wholesale
- Index(es):
Relevant Pages
|