Class ProtoUtil
java.lang.Object
io.protostuff.parser.ProtoUtil
Utility for loading protos from various input.
- Author:
- David Yu
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidloadFrom(InputStream in, Proto target) Loads the proto from anInputStream.static voidLoads the proto from aReader.static voidstatic voidLoads the proto from anANTLRReaderStream.static ProtoparseProto(File file) static StringBuildertoCamelCase(String name) static StringBuildertoPascalCase(String name) static StringBuildertoUnderscoreCase(String name)
-
Method Details
-
loadFrom
-
loadFrom
Loads the proto from anInputStream.- Throws:
Exception
-
loadFrom
-
parseProto
-
loadFrom
-
loadFrom
-
toCamelCase
-
toPascalCase
-
toUnderscoreCase
-