Note that message name argument is optional if (and only if) desired root type is the first Message type in definition; otherwise an exception will be thrown.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static final long | |
| public static final ProtobufSchemaLoader | std
Standard loader instance that is usually used for loading protoc schemas. |
| private static final Charset |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ProtoFile | |
| public ProtoFile | |
| public ProtoFile | |
| public ProtoFile | |
| protected ProtoFile | |
| protected String | |
| public ProtobufSchema | |
| public ProtobufSchema | |
| public ProtobufSchema | |
| public ProtobufSchema | |
| public ProtobufSchema | load(InputStream in)
Method for loading and parsing a protoc definition from given stream, assuming UTF-8 encoding. |
| public ProtobufSchema | load(InputStream in, String
Name of message type in schema definition that is
the root value to read/write rootTypeName)
|
| public ProtobufSchema | |
| public ProtobufSchema | |
| public NativeProtobufSchema | |
| public NativeProtobufSchema | |
| public NativeProtobufSchema | |
| protected NativeProtobufSchema | |
| public ProtobufSchema | |
| public ProtobufSchema | |
| public NativeProtobufSchema |
| DEFAULT_SCHEMA_NAME | back to summary |
|---|---|
| public static final String DEFAULT_SCHEMA_NAME | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| std | back to summary |
|---|---|
| public static final ProtobufSchemaLoader std Standard loader instance that is usually used for loading protoc schemas. | |
| UTF8 | back to summary |
|---|---|
| private static final Charset UTF8 | |
| ProtobufSchemaLoader | back to summary |
|---|---|
| public ProtobufSchemaLoader() | |
| _loadNative | back to summary |
|---|---|
| public ProtoFile _loadNative(File f) throws IOException | |
| _loadNative | back to summary |
|---|---|
| public ProtoFile _loadNative(URL url) throws IOException | |
| _loadNative | back to summary |
|---|---|
| public ProtoFile _loadNative(String schemaAsString) throws IOException | |
| _loadNative | back to summary |
|---|---|
| public ProtoFile _loadNative(InputStream in, boolean close) throws IOException | |
| _loadNative | back to summary |
|---|---|
| protected ProtoFile _loadNative(Reader r, boolean close) throws IOException | |
| _readAll | back to summary |
|---|---|
| protected String _readAll(Reader r) throws IOException | |
| load | back to summary |
|---|---|
| public ProtobufSchema load(URL url) throws IOException | |
| load | back to summary |
|---|---|
public ProtobufSchema load(URL url, String rootTypeName) throws IOException
| |
| load | back to summary |
|---|---|
| public ProtobufSchema load(File f) throws IOException | |
| load | back to summary |
|---|---|
public ProtobufSchema load(File f, String rootTypeName) throws IOException
| |
| load | back to summary |
|---|---|
| public ProtobufSchema load(InputStream in) throws IOException Method for loading and parsing a protoc definition from given
stream, assuming UTF-8 encoding.
Note that given | |
| load | back to summary |
|---|---|
public ProtobufSchema load(InputStream in, String rootTypeName) throws IOException
| |
| load | back to summary |
|---|---|
| public ProtobufSchema load(Reader r) throws IOException Method for loading and parsing a protoc definition from given
stream, assuming UTF-8 encoding.
Note that given | |
| load | back to summary |
|---|---|
public ProtobufSchema load(Reader r, String rootTypeName) throws IOException
| |
| loadNative | back to summary |
|---|---|
| public NativeProtobufSchema loadNative(File f) throws IOException | |
| loadNative | back to summary |
|---|---|
| public NativeProtobufSchema loadNative(URL url) throws IOException | |
| loadNative | back to summary |
|---|---|
| public NativeProtobufSchema loadNative(InputStream in, boolean close) throws IOException | |
| loadNative | back to summary |
|---|---|
| protected NativeProtobufSchema loadNative(Reader r, boolean close) throws IOException | |
| parse | back to summary |
|---|---|
| public ProtobufSchema parse(String schemaAsString) throws IOException Method for parsing given protoc schema definition, constructing schema object Jackson can use. | |
| parse | back to summary |
|---|---|
public ProtobufSchema parse(String schemaAsString, String rootTypeName) throws IOException
| |
| parseNative | back to summary |
|---|---|
| public NativeProtobufSchema parseNative(String schema) throws IOException | |