@Beta public class ProtoObjectParser extends java.lang.Object implements ObjectParser
Beta Implementation is immutable and therefore thread-safe.
Data-classes are expected to extend MessageLite.
All Charset parameters are ignored for protocol buffers.
| Constructor and Description |
|---|
ProtoObjectParser() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
parseAndClose(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.Class<T> dataClass) |
java.lang.Object |
parseAndClose(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.reflect.Type dataType) |
<T> T |
parseAndClose(java.io.Reader reader,
java.lang.Class<T> dataClass) |
java.lang.Object |
parseAndClose(java.io.Reader reader,
java.lang.reflect.Type dataType) |
public <T> T parseAndClose(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.Class<T> dataClass)
throws java.io.IOException
parseAndClose in interface ObjectParserjava.io.IOExceptionpublic java.lang.Object parseAndClose(java.io.InputStream in,
java.nio.charset.Charset charset,
java.lang.reflect.Type dataType)
throws java.io.IOException
parseAndClose in interface ObjectParserjava.io.IOExceptionpublic <T> T parseAndClose(java.io.Reader reader,
java.lang.Class<T> dataClass)
throws java.io.IOException
parseAndClose in interface ObjectParserjava.io.IOExceptionpublic java.lang.Object parseAndClose(java.io.Reader reader,
java.lang.reflect.Type dataType)
throws java.io.IOException
parseAndClose in interface ObjectParserjava.io.IOExceptionCopyright © 2011-2018 Google. All Rights Reserved.