• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of StringBuffer to add data

 
R Sawant
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I want to create a XML string from a XML. Is it ok, if i use StringBuffer for this purpose. The idea is, go on appending the required data to the StringBuffer and finally convert the StringBuffer to String.
I am worried about one thing. If the XML is a bit large, does it affects the performance or is there any memory issue. Please advice. Thanks

Ramdas.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not related to SCWCD.
Please do not crosspost between different forums.
http://www.coderanch.com/t/253369/java-programmer-SCJP/certification/StringBuffer
 
Cm Ananth
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think u can use StringBuffer for this purpose.. because StringBuffer is designed for these kind of works only.. I think there wont be performance issues.. Correct me if something is wrong..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic