Class CodedInputStream
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.CodedInputStream
-
public final class CodedInputStream extends java.lang.ObjectMinimal copy of protobuf-java's CodedInputStream, currently only used in GrpcStatusUtil.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateCodedInputStream(byte[] buffer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisAtEnd()static CodedInputStreamnewInstance(byte[] serialized)Returns a newCodedInputStream.private static java.io.IOExceptionnewMalformedVarintException()private static java.io.IOExceptionnewNegativeException()private static java.io.IOExceptionnewTruncatedException()doublereadDouble()private bytereadRawByte()private longreadRawLittleEndian64()intreadRawVarint32()Read varint32.private longreadRawVarint64SlowPath()java.lang.StringreadStringRequireUtf8()Reads a string field.intreadTag()Reads the next tag.booleanskipField(int tag)Skips a field.private voidskipRawBytes(int length)private voidskipRawVarint()private voidskipRawVarintFastPath()private voidskipRawVarintSlowPath()
-
-
-
Method Detail
-
newInstance
public static CodedInputStream newInstance(byte[] serialized)
Returns a newCodedInputStream.
-
readTag
public int readTag() throws java.io.IOExceptionReads the next tag.- Throws:
java.io.IOException
-
readStringRequireUtf8
public java.lang.String readStringRequireUtf8() throws java.io.IOExceptionReads a string field.- Throws:
java.io.IOException
-
skipField
public boolean skipField(int tag) throws java.io.IOExceptionSkips a field.- Throws:
java.io.IOException
-
isAtEnd
private boolean isAtEnd()
-
readRawVarint32
public int readRawVarint32() throws java.io.IOExceptionRead varint32.- Throws:
java.io.IOException
-
readRawVarint64SlowPath
private long readRawVarint64SlowPath() throws java.io.IOException- Throws:
java.io.IOException
-
readRawByte
private byte readRawByte() throws java.io.IOException- Throws:
java.io.IOException
-
skipRawVarint
private void skipRawVarint() throws java.io.IOException- Throws:
java.io.IOException
-
readDouble
public double readDouble() throws java.io.IOException- Throws:
java.io.IOException
-
readRawLittleEndian64
private long readRawLittleEndian64() throws java.io.IOException- Throws:
java.io.IOException
-
skipRawVarintFastPath
private void skipRawVarintFastPath() throws java.io.IOException- Throws:
java.io.IOException
-
skipRawVarintSlowPath
private void skipRawVarintSlowPath() throws java.io.IOException- Throws:
java.io.IOException
-
skipRawBytes
private void skipRawBytes(int length) throws java.io.IOException- Throws:
java.io.IOException
-
newNegativeException
private static java.io.IOException newNegativeException()
-
newTruncatedException
private static java.io.IOException newTruncatedException()
-
newMalformedVarintException
private static java.io.IOException newMalformedVarintException()
-
-