public final class ProtoParser extends Object
.proto schema declarations.| Modifier and Type | Method and Description |
|---|---|
static ProtoFile |
parse(String name,
Reader reader)
Parse a named
.proto schema. |
static ProtoFile |
parse(String name,
String data)
Parse a named
.proto schema. |
static ProtoFile |
parseUtf8(File file)
Parse a
.proto definition file. |
static ProtoFile |
parseUtf8(java.nio.file.Path path)
Parse a
.proto definition file. |
static ProtoFile |
parseUtf8(String name,
InputStream is)
Parse a named
.proto schema. |
public static ProtoFile parseUtf8(File file) throws IOException
.proto definition file.IOExceptionpublic static ProtoFile parseUtf8(java.nio.file.Path path) throws IOException
.proto definition file.IOExceptionpublic static ProtoFile parseUtf8(String name, InputStream is) throws IOException
.proto schema. The InputStream is not closed.IOExceptionpublic static ProtoFile parse(String name, Reader reader) throws IOException
.proto schema. The Reader is not closed.IOExceptionCopyright © 2015 Square, Inc.. All Rights Reserved.