Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #9219

Re: I/O Confusion

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: I/O Confusion
Date 2011-10-26 16:48 -0700
Organization Canadian Mind Products
Message-ID <nn6ha719sc282cmov3meq0rcaoevqc282k@4ax.com> (permalink)
References <Xns9F89C3FFB48DDjpnasty@94.75.214.39> <q8bga7t82f28hbv1a267ikoafm9qfq2mhm@4ax.com> <Xns9F8AAD4106158jpnasty@94.75.214.39>

Show all headers | View raw


On Wed, 26 Oct 2011 20:57:23 +0000 (UTC), Novice <novice@example..com>
wrote, quoted or indirectly quoted someone who said :

>> 
>> see http://mindprod.com/jgloss/applet/fileio.html
>
>
>Thanks Roedy - and the others who replied to my question! - for your 
>answers. I'll mull over the information and get back to you with a new 
>thread if I have further questions.

When I first encountered the IO classes it felt like learning
irregular verbs in some foreign language. I wrote that Applet for
myself because I could not remember.  However, over time using the
Applet many times, The code it generated became familiar and
predictable. There are still some goofy things, -- the way specified
encodings are so different from default encodings, and sorting out how
much buffering to put in the InputStream and how much the Reader. Most
of the time now I just clone some code I wrote earlier.
It is sort of like a Lego set with some very strangely shaped pieces,
and some pieces you would expect to exist missing.

I you look at the source code FileIO.java that generates the code, you
will appreciate how strangely irregular the whole thing is.  It was
designed to make the job possible, not easy.  

-- 
Roedy Green Canadian Mind Products
http://mindprod.com
It should not be considered an error when the user starts something
already started or stops something already stopped. This applies
to browsers, services, editors... It is inexcusable to 
punish the user by requiring some elaborate sequence to atone,
e.g. open the task editor, find and kill some processes.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

I/O Confusion Novice <novice@example..com> - 2011-10-25 23:12 +0000
  Re: I/O Confusion Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-10-25 21:20 -0400
  Re: I/O Confusion Silvio Bierman <silvio@moc.com> - 2011-10-26 03:21 +0200
  Re: I/O Confusion markspace <-@.> - 2011-10-25 18:47 -0700
  Re: I/O Confusion Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 08:55 -0700
    Re: I/O Confusion "Nasser M. Abbasi" <nma@12000.org> - 2011-10-26 12:03 -0500
      Re: I/O Confusion Novice <novice@example..com> - 2011-10-26 17:35 +0000
    Re: I/O Confusion Novice <novice@example..com> - 2011-10-26 20:57 +0000
      Re: I/O Confusion Roedy Green <see_website@mindprod.com.invalid> - 2011-10-26 16:48 -0700

csiph-web