• Post Reply Bookmark Topic Watch Topic
  • New Topic

StringReader StringWriter

 
Liz Stanley
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone give me a real-life example of a use for StringReader/StringWriter? I'm preparing a lecture on I/O, have never used these two classes myself, and want to have an answer ready for the inevitable "why?" :-)
thanks!
 
Jim Baiter
Ranch Hand
Posts: 532
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They're used quite a bit in XML parsers. Here's an example:
http://forum.java.sun.com/read/16788712/qA4AjNQv3PLsAAZqf#LR
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!