Forums Register Login

To read a line, how to use InputStream instead of BufferReader ?

+Pie Number of slices to send: Send
Hi Folks,
I have a document and I am generating an XML from that by extracting each line using BufferedReader. Now my requirement is to change this so that it uses an InputStream instead of a BufferedReader . The reason for this is to avoid a possible overflow with the BufferedReader.
Please help me out ASAP,as I am unable to read a line with the methods provided by InputStream.
Thanks in advance.
Regards,
Lakshmi
+Pie Number of slices to send: Send
Assuming that you don't want buffering, or any fancy stuff like that...

[This message has been edited by Marilyn deQueiroz (edited October 10, 2001).]
+Pie Number of slices to send: Send
TO use this code in a loop, for example to parse a hole file given by inputStream, you have to add a condition to the while loop, so it will be


and you can add the method
I need a new interior decorator. This tiny ad just painted every room in my house purple.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 13198 times.
Similar Threads
input/output
Anyone answer the question
Flying Through a page...reading the content...
reading from system command
Write a String to ByteArrayOutputStream
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 03:48:11.