• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

io package

 
Ram Jonnalagadda
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai
I have a doubt.
Can we pass StringBuffer as an argument to streams.
thanks
 
prasanthi kothapa
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ji ram,
no i don't think you could possibly pass a StingBuffer as
an argument.if i am wrong please correct me.

prasanthi
 
sarim raza
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ram Jonnalagadda
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
That's a good explanation.
thanks
 
Paul Anilprem
Enthuware Software Support
Ranch Hand
Posts: 3776
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic