[Advanced-java] Inheritation of InputStream crashs BufferedReader
Peter Rader
p.rader at new-voice.de
Thu Apr 27 09:05:18 PDT 2006
Hi Folks,
i do not often post to this list, but this time i need your help.
My java decompiler show me the sourcecode of InputStream, so i see
that i only have to override the method "int read()" and "int available()"
and his constructor?! Right?
I do so and convert my inputstream to BufferedReader this way:
BufferedReader myreader = new BufferedReader(new
InputStreamReader(myInheritOfInputstream));
Everything works fine, until my InputStream got no more data.
"myreader.ready()" is true while my InputStream's methode "available()"
returns 0.
So what do i have to do, to inform the BufferedReader that there is no
more data?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /lists/advanced-java/attachments/20060427/c9eac5da/attachment.html
More information about the Advanced-java
mailing list