public final class ProtoUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isTruncatedMessageException(IOException e)
Checks whether the exception is an
InvalidProtocolBufferException thrown because of
a truncated message. |
static int |
readRawVarint32(int firstByte,
InputStream input)
A wrapper of
CodedInputStream.readRawVarint32(InputStream) . |
public static int readRawVarint32(int firstByte, InputStream input) throws IOException
CodedInputStream.readRawVarint32(InputStream)
.firstByte
- first byte in the input streaminput
- input streamIOException
public static boolean isTruncatedMessageException(IOException e)
InvalidProtocolBufferException
thrown because of
a truncated message.e
- the exceptionInvalidProtocolBufferException
thrown because of
a truncated message.Copyright © 2023. All Rights Reserved.