• Post Reply Bookmark Topic Watch Topic
  • New Topic

load Properties from a String

 
Raymond I Blum
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I want to load a Properties object from the contents of a StringBuffer. The load() takes an InputStream, so I *can* just use a StringBufferInputStream but that is deprecated. The advsed replacement for StringBufferInputStream is to use a StringReader but that's not a InputStream. I can't beleive that there's no convenient way to do this without resorting to deprecated warnings. Any advice?
Thanks
---Raymond
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try
 
Raymond I Blum
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Megathanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!