Forums Register Login

io package

+Pie Number of slices to send: Send
Hai
I have a doubt.
Can we pass StringBuffer as an argument to streams.
thanks
+Pie Number of slices to send: Send
ji ram,
no i don't think you could possibly pass a StingBuffer as
an argument.if i am wrong please correct me.

prasanthi
+Pie Number of slices to send: Send
higher order streams would not take string buffer as an argument, they are particular about what they take as an argument, and normally take lower order streams, like a bufferedinputstream would take a fileinputstream
+Pie Number of slices to send: Send
hai,
That's a good explanation.
thanks
+Pie Number of slices to send: Send
It is not clear what do you mean by passing StringBuffer as an argument. If you mean passing StringBuffer to constructor for creating streams then, there are two classes StringBufferInputStream (Deprecated) and StringReader. But both of them take String as an argument.
HTH,
Paul.

------------------
Get Certified, Guaranteed!
(Now Revised for the new Pattern)
www.enthuware.com/jqplus
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 563 times.
Similar Threads
Doubt in this()
Doubt in Narrowing
doubt
doubt with StringBuffer
Stream classes
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 02:53:37.