Package io.protostuff.parser
Class ProtoUtil
java.lang.Object
io.protostuff.parser.ProtoUtil
Utility for loading protos from various input.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
loadFrom
(InputStream in, Proto target) Loads the proto from anInputStream
.static void
Loads the proto from aReader
.static void
static void
Loads the proto from anANTLRReaderStream
.static Proto
parseProto
(File file) static StringBuilder
toCamelCase
(String name) static StringBuilder
toPascalCase
(String name) static StringBuilder
toUnderscoreCase
(String name)
-
Constructor Details
-
ProtoUtil
private ProtoUtil()
-
-
Method Details
-
loadFrom
public static void loadFrom(org.antlr.runtime.ANTLRReaderStream input, Proto target) throws Exception Loads the proto from anANTLRReaderStream
.- Throws:
Exception
-
loadFrom
Loads the proto from anInputStream
.- Throws:
Exception
-
loadFrom
Loads the proto from aReader
.- Throws:
Exception
-
parseProto
-
loadFrom
- Throws:
Exception
-
loadFrom
- Throws:
Exception
-
toCamelCase
-
toPascalCase
-
toUnderscoreCase
-