bivas / protobuf-java-format

Provide serialization and de-serialization of different formats based on Google’s protobuf Message. Enables overriding the default (byte array) output to text based formats such as XML, JSON and HTML.
BSD 3-Clause "New" or "Revised" License
152 stars 97 forks source link

Can't Find this method printToString() #56

Closed UncleWangKing closed 5 years ago

UncleWangKing commented 5 years ago

Sorry .I can't Find this method printToString() in class com.googlecode.protobuf.format in tag 1.4 which I see In README.md as

For Json output, use JsonFormat

Message someProto = SomeProto.getDefaultInstance(); JsonFormat jsonFormat = new JsonFormat(); String asJson = jsonFormat.printToString(someProto);