?
=?ISO-8859-1?Q?Mart_K=E4sper?=
Hi, all
suppose I have an implementation that reads raw files with data using
BufferedReader(FileReader).read(char[],int,int) invocations. This
returns an array of char's that each may be in the range 0..255.
This worked perfectly OK in JDK 1.1 but not using 1.4 ... what I'm
actually using it for is to later on cast each char to a short, thereby
expecting a value 0..255.
However, when reading a char with the value of e.g. 211, the casted-to
short gets -3 which confuses the application to some extent.
If I still wish to use BufferedReader (I use mark() and ready()), how
can I continue to read the integer values from a file ?
Thanks in advance
suppose I have an implementation that reads raw files with data using
BufferedReader(FileReader).read(char[],int,int) invocations. This
returns an array of char's that each may be in the range 0..255.
This worked perfectly OK in JDK 1.1 but not using 1.4 ... what I'm
actually using it for is to later on cast each char to a short, thereby
expecting a value 0..255.
However, when reading a char with the value of e.g. 211, the casted-to
short gets -3 which confuses the application to some extent.
If I still wish to use BufferedReader (I use mark() and ready()), how
can I continue to read the integer values from a file ?
Thanks in advance