Yes, using the same text file format.
Just use TextFormat.merge
, passing in either the text itself as a CharSequence
or a Readable
(e.g. Reader
) and a builder to merge the values into.
See the Javadoc for TextFormat
for more information, and be aware that it's not available in the "lite" runtime.