Re: New VSI post on Youtube

Liste des GroupesRevenir à co vms 
Sujet : Re: New VSI post on Youtube
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vms
Date : 20. Aug 2024, 19:37:26
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <va2np6$3f2e6$2@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12
User-Agent : Mozilla Thunderbird
On 8/20/2024 1:38 PM, Simon Clubley wrote:
Also, no dynamic arrays built into the language itself. You need ArrayList()
to implement them or things like ByteArrayOutputStream().
At the level of Java then I think that is to be expected. A
dynamic data structure requires a collection type. In C#
List<T> and T[] are different. In C++ vector<T> and T[] are
different.
But Java developers should consider ArrayList<T> to be their
default choice instead of T[].

The java.io package may seem a bit complex, but it makes perfect
sense when you learn the structure.
>
The basics is:
>
InputStream - read bytes from anything
      FileInputStream - read bytes from file
      ByteArrayInputStream - read bytes from byte array
      ...
OutputStream - write bytes to anything
      FileOutputStream - write bytes to file
      ByteArrayOutputStream - write bytes to byte array
      ...
Reader - read chars according to encoding from anything
      FileReader - read chars according to encoding from file
      CharArrayReader - read chars according to encoding from char array
      ...
Writer - write chars according to encoding to anything
      FileWriter - write chars according to encoding to file
      CharArrayWriter - write chars according to encoding to char array
      ...
>
All very systematic.
>
On top of that there are two convenience classes to work with text
files:
* BufferedReader that wraps any Reader and provides a readLine method
* PrintWriter that wraps any Writer and provides print, println and
    printf methods
>
Remember that and you can handle 98% of cases.
>
For the last 2% reading the docs will be needed.
 You forgot about InputStreamReader() to turn an InputStream into a Reader. :-)
There are InputStreamReader to convert from InputStream to Reader and
OutputStreamWriter to convert from OutputStream to Writer.
And they are actually used, because some API's has classes that only has
getInputStream()/getOutputStream() methods and not
getReader()/getWriter() methods.
All follow the model.

After all, why miss the opportunity to have two parallel sets of APIs
(byte versus character) instead of just the one API ? :-)
 Goodness knows why they didn't just add something like String's getBytes()
method to the character APIs or add character support to the byte APIs...
Because InputStream/OutputStream and Reader/Writer are fundamentally
different.
The first transfer between an in memory sequence of bytes
(-128..127 values) to an external form of same sequence of
bytes (-128..127 values).
The second transfer between an in memory sequence of
sequence of chars aka Unicode code points (0..65536 values)
usually in the form of String objects to an external form
of sequence of bytes (-128..127) values often of a different
length according to some encoding (UTF-8 is most common but
there are hundreds of possibilities: UTF-16, UTF-32, ISO-8859-x,
ASCII, EBCDIC, various non-latin).
In C then wprintf/wscanf are not the same as printf/scanf either.
The difference is that very few use wide in C while everybody is
more or less forced to use wide in Java.
Arne

Date Sujet#  Auteur
13 Aug 24 * New VSI post on Youtube208Arne Vajhøj
14 Aug 24 `* Re: New VSI post on Youtube207Arne Vajhøj
14 Aug 24  `* Re: New VSI post on Youtube206Simon Clubley
14 Aug 24   +* Re: New VSI post on Youtube184Robert A. Brooks
14 Aug 24   i+* Re: New VSI post on Youtube180Arne Vajhøj
14 Aug 24   ii+* Re: New VSI post on Youtube22Robert A. Brooks
14 Aug 24   iii`* Re: New VSI post on Youtube21Arne Vajhøj
14 Aug 24   iii `* Re: New VSI post on Youtube20Robert A. Brooks
14 Aug 24   iii  +- Re: New VSI post on Youtube1Arne Vajhøj
15 Aug 24   iii  +* Re: New VSI post on Youtube8Stephen Hoffman
15 Aug 24   iii  i`* Re: New VSI post on Youtube7Craig A. Berry
16 Aug 24   iii  i `* Re: New VSI post on Youtube6Stephen Hoffman
17 Aug 24   iii  i  `* Re: New VSI post on Youtube5Lawrence D'Oliveiro
17 Aug 24   iii  i   `* Re: New VSI post on Youtube4Craig A. Berry
17 Aug 24   iii  i    `* Re: New VSI post on Youtube3Lawrence D'Oliveiro
18 Aug 24   iii  i     `* Re: New VSI post on Youtube2Arne Vajhøj
18 Aug 24   iii  i      `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
16 Aug 24   iii  `* Re: New VSI post on Youtube10John Dallman
16 Aug 24   iii   +* Re: New VSI post on Youtube2Arne Vajhøj
17 Aug 24   iii   i`- Re: New VSI post on Youtube1Lawrence D'Oliveiro
17 Aug 24   iii   +- Re: New VSI post on Youtube1Craig A. Berry
19 Aug 24   iii   `* Re: New VSI post on Youtube6Simon Clubley
19 Aug 24   iii    `* Re: New VSI post on Youtube5Arne Vajhøj
20 Aug 24   iii     `* Re: New VSI post on Youtube4Simon Clubley
20 Aug 24   iii      +- Re: New VSI post on Youtube1Arne Vajhøj
23 Aug 24   iii      `* Re: New VSI post on Youtube2Stephen Hoffman
23 Aug 24   iii       `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
14 Aug 24   ii+* Re: New VSI post on Youtube149Arne Vajhøj
15 Aug 24   iii+- Re: C and C++ and Deprecation (was: Re: New VSI post on Youtube)1Stephen Hoffman
15 Aug 24   iii+* Re: New VSI post on Youtube146Simon Clubley
15 Aug 24   iiii+- Re: New VSI post on Youtube1Arne Vajhøj
15 Aug 24   iiii+- Re: New VSI post on Youtube1Arne Vajhøj
19 Aug 24   iiii`* Re: New VSI post on Youtube143chrisq
19 Aug 24   iiii +* Re: New VSI post on Youtube91Arne Vajhøj
20 Aug 24   iiii i+- Re: New VSI post on Youtube1Lawrence D'Oliveiro
20 Aug 24   iiii i+* Re: New VSI post on Youtube73chrisq
20 Aug 24   iiii ii`* Re: New VSI post on Youtube72Simon Clubley
20 Aug 24   iiii ii +* Re: New VSI post on Youtube4chrisq
21 Aug 24   iiii ii i`* Re: New VSI post on Youtube3Lawrence D'Oliveiro
21 Aug 24   iiii ii i `* Re: New VSI post on Youtube2Arne Vajhøj
21 Aug 24   iiii ii i  `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
20 Aug 24   iiii ii +* Re: New VSI post on Youtube49Arne Vajhøj
21 Aug 24   iiii ii i+* Re: New VSI post on Youtube20Lawrence D'Oliveiro
21 Aug 24   iiii ii ii+* Re: New VSI post on Youtube6Arne Vajhøj
21 Aug 24   iiii ii iii+* Re: New VSI post on Youtube3Lawrence D'Oliveiro
21 Aug 24   iiii ii iiii+- Re: New VSI post on Youtube1Arne Vajhøj
22 Aug 24   iiii ii iiii`- Re: New VSI post on Youtube1Dave Froble
22 Aug 24   iiii ii iii`* Re: New VSI post on Youtube2Dave Froble
22 Aug 24   iiii ii iii `- Re: New VSI post on Youtube1Arne Vajhøj
21 Aug 24   iiii ii ii`* Re: New VSI post on Youtube13chrisq
21 Aug 24   iiii ii ii +* Re: New VSI post on Youtube11Arne Vajhøj
21 Aug 24   iiii ii ii i+- Re: New VSI post on Youtube1Arne Vajhøj
22 Aug 24   iiii ii ii i+- Re: New VSI post on Youtube1Arne Vajhøj
23 Aug 24   iiii ii ii i`* Re: New VSI post on Youtube8chrisq
23 Aug 24   iiii ii ii i +* Re: New VSI post on Youtube6Arne Vajhøj
23 Aug 24   iiii ii ii i i`* Re: New VSI post on Youtube5Michael S
23 Aug 24   iiii ii ii i i +* Re: New VSI post on Youtube2Arne Vajhøj
23 Aug 24   iiii ii ii i i i`- Re: New VSI post on Youtube1Arne Vajhøj
27 Aug 24   iiii ii ii i i `* VSI Forums offline ?2babydr DBA James W. Laferriere
27 Aug 24   iiii ii ii i i  `- Re: VSI Forums offline ?1Arne Vajhøj
23 Aug 24   iiii ii ii i `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
22 Aug 24   iiii ii ii `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
24 Aug 24   iiii ii i+* Re: New VSI post on Youtube27Lars Poulsen
24 Aug 24   iiii ii ii+* Re: New VSI post on Youtube24Lawrence D'Oliveiro
25 Aug 24   iiii ii iii+* Re: New VSI post on Youtube11Arne Vajhøj
25 Aug 24   iiii ii iiii`* Re: New VSI post on Youtube10Lawrence D'Oliveiro
25 Aug 24   iiii ii iiii `* Re: New VSI post on Youtube9Arne Vajhøj
25 Aug 24   iiii ii iiii  `* Re: New VSI post on Youtube8Lawrence D'Oliveiro
25 Aug 24   iiii ii iiii   `* Re: New VSI post on Youtube7Arne Vajhøj
26 Aug 24   iiii ii iiii    `* Re: New VSI post on Youtube6Lawrence D'Oliveiro
26 Aug 24   iiii ii iiii     `* Re: New VSI post on Youtube5Arne Vajhøj
26 Aug 24   iiii ii iiii      +- Re: New VSI post on Youtube1Lawrence D'Oliveiro
27 Aug 24   iiii ii iiii      `* Re: New VSI post on Youtube3Arne Vajhøj
27 Aug 24   iiii ii iiii       +- Re: New VSI post on Youtube1Arne Vajhøj
27 Aug 24   iiii ii iiii       `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
27 Aug 24   iiii ii iii+- Re: New VSI post on Youtube1Simon Clubley
27 Aug 24   iiii ii iii`* Re: New VSI post on Youtube11John Dallman
27 Aug 24   iiii ii iii `* Re: New VSI post on Youtube10Lawrence D'Oliveiro
28 Aug 24   iiii ii iii  +* Re: New VSI post on Youtube2Arne Vajhøj
28 Aug 24   iiii ii iii  i`- Re: New VSI post on Youtube1Lawrence D'Oliveiro
28 Aug 24   iiii ii iii  +* Re: New VSI post on Youtube2Arne Vajhøj
28 Aug 24   iiii ii iii  i`- Re: New VSI post on Youtube1Lawrence D'Oliveiro
28 Aug 24   iiii ii iii  `* Re: New VSI post on Youtube5John Dallman
29 Aug 24   iiii ii iii   `* Re: New VSI post on Youtube4Lawrence D'Oliveiro
29 Aug 24   iiii ii iii    `* Re: New VSI post on Youtube3Craig A. Berry
29 Aug 24   iiii ii iii     +- Re: New VSI post on Youtube1Arne Vajhøj
30 Aug 24   iiii ii iii     `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
24 Aug 24   iiii ii ii`* Re: New VSI post on Youtube2Craig A. Berry
25 Aug 24   iiii ii ii `- Re: New VSI post on Youtube1Lawrence D'Oliveiro
25 Aug 24   iiii ii i`- Re: New VSI post on Youtube1Dan Cross
20 Aug 24   iiii ii +- Re: New VSI post on Youtube1Single Stage to Orbit
20 Aug 24   iiii ii +* Re: New VSI post on Youtube9bill
20 Aug 24   iiii ii i+* Re: New VSI post on Youtube3Simon Clubley
22 Aug 24   iiii ii ii`* Re: New VSI post on Youtube2Dave Froble
22 Aug 24   iiii ii ii `- Re: New VSI post on Youtube1Arne Vajhøj
20 Aug 24   iiii ii i+- Re: New VSI post on Youtube1Arne Vajhøj
22 Aug 24   iiii ii i`* Re: New VSI post on Youtube4Dave Froble
22 Aug 24   iiii ii i `* Re: New VSI post on Youtube3Simon Clubley
22 Aug 24   iiii ii i  +- Re: New VSI post on Youtube1Arne Vajhøj
23 Aug 24   iiii ii i  `- Re: New VSI post on Youtube1Dave Froble
22 Aug 24   iiii ii +* Re: New VSI post on Youtube2Dave Froble
25 Aug 24   iiii ii `* Re: New VSI post on Youtube6Stephen Hoffman
20 Aug 24   iiii i`* Re: New VSI post on Youtube16Simon Clubley
19 Aug 24   iiii +* Re: C and C++, promotion, stabilization, migration (was: Re: New VSI post on Youtube)50Stephen Hoffman
20 Aug 24   iiii `- Re: New VSI post on Youtube1Simon Clubley
19 Aug 24   iii`- Re: New VSI post on Youtube1chrisq
14 Aug 24   ii+* Re: New VSI post on Youtube2Arne Vajhøj
15 Aug 24   ii`* Re: New VSI post on Youtube6Lawrence D'Oliveiro
15 Aug 24   i`* Re: New VSI post on Youtube3John Dallman
14 Aug 24   `* Re: New VSI post on Youtube21Arne Vajhøj

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal