java - Reverse ToStringBuilder : convert string to object -
is there way convert output tostringbuilder java object?
i looking easy way represent java object in readable text file , being able convert , forth between string , object.
thanks,
you must define strict format , follow parser. there 2 accepted formats:
- xml - can use
java.beans.xmlencoder - json - use jackson or gson
if don't choose these formats have handle parsing yourself.
the tostringbuilder not seem have reverse equivalent. furthermore wrong use string representation such purposes - meant debug.
Comments
Post a Comment