Class CodedOutputStream.OutputStreamEncoder
java.lang.Object
io.opentelemetry.exporter.internal.marshal.CodedOutputStream
io.opentelemetry.exporter.internal.marshal.CodedOutputStream.AbstractBufferedEncoder
io.opentelemetry.exporter.internal.marshal.CodedOutputStream.OutputStreamEncoder
- Enclosing class:
CodedOutputStream
private static final class CodedOutputStream.OutputStreamEncoder
extends CodedOutputStream.AbstractBufferedEncoder
An
CodedOutputStream that decorates an OutputStream. It performs internal
buffering to optimize writes to the OutputStream.-
Field Summary
FieldsFields inherited from class CodedOutputStream.AbstractBufferedEncoder
buffer, limit, position, totalBytesWritten -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddoFlush()(package private) voidflush()Flushes the stream and forces any buffered bytes to be written.private voidflushIfNotAvailable(int requiredSize) (package private) voidreset(OutputStream out) (package private) voidwrite(byte value) (package private) voidwrite(byte[] value, int offset, int length) (package private) voidwrite(ByteBuffer value) (package private) voidwriteByteArrayNoTag(byte[] value, int offset, int length) Write abytesfield to the stream.(package private) voidwriteByteBufferNoTag(ByteBuffer value) (package private) voidwriteFixed32NoTag(int value) Write afixed32field to the stream.(package private) voidwriteFixed64NoTag(long value) Write afixed64field to the stream.(package private) voidwriteInt32NoTag(int value) Write anint32field to the stream.(package private) voidwriteUInt32NoTag(int value) Write auint32field to the stream.(package private) voidwriteUInt64NoTag(long value) Write auint64field to the stream.Methods inherited from class CodedOutputStream.AbstractBufferedEncoder
buffer, bufferFixed32NoTag, bufferFixed64NoTag, bufferUInt32NoTag, bufferUInt64NoTagMethods inherited from class CodedOutputStream
computeBoolSizeNoTag, computeByteArraySizeNoTag, computeByteBufferSizeNoTag, computeDoubleSizeNoTag, computeEnumSizeNoTag, computeFixed32SizeNoTag, computeFixed64SizeNoTag, computeFloatSizeNoTag, computeInt32SizeNoTag, computeInt64SizeNoTag, computeLengthDelimitedFieldSize, computeSFixed32SizeNoTag, computeSFixed64SizeNoTag, computeSInt32SizeNoTag, computeSInt64SizeNoTag, computeTagSize, computeUInt32SizeNoTag, computeUInt64SizeNoTag, encodeZigZag32, encodeZigZag64, newInstance, writeBoolNoTag, writeByteArrayNoTag, writeDoubleNoTag, writeEnumNoTag, writeFloatNoTag, writeInt64NoTag, writeRawBytes, writeSFixed32NoTag, writeSFixed64NoTag, writeSInt32NoTag, writeSInt64NoTag
-
Field Details
-
out
-
-
Constructor Details
-
OutputStreamEncoder
OutputStreamEncoder(OutputStream out)
-
-
Method Details
-
reset
-
writeByteArrayNoTag
Description copied from class:CodedOutputStreamWrite abytesfield to the stream.- Specified by:
writeByteArrayNoTagin classCodedOutputStream- Throws:
IOException
-
writeByteBufferNoTag
- Specified by:
writeByteBufferNoTagin classCodedOutputStream- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Specified by:
writein classCodedOutputStream- Throws:
IOException
-
writeInt32NoTag
Description copied from class:CodedOutputStreamWrite anint32field to the stream.- Specified by:
writeInt32NoTagin classCodedOutputStream- Throws:
IOException
-
writeUInt32NoTag
Description copied from class:CodedOutputStreamWrite auint32field to the stream.- Specified by:
writeUInt32NoTagin classCodedOutputStream- Throws:
IOException
-
writeFixed32NoTag
Description copied from class:CodedOutputStreamWrite afixed32field to the stream.- Specified by:
writeFixed32NoTagin classCodedOutputStream- Throws:
IOException
-
writeUInt64NoTag
Description copied from class:CodedOutputStreamWrite auint64field to the stream.- Specified by:
writeUInt64NoTagin classCodedOutputStream- Throws:
IOException
-
writeFixed64NoTag
Description copied from class:CodedOutputStreamWrite afixed64field to the stream.- Specified by:
writeFixed64NoTagin classCodedOutputStream- Throws:
IOException
-
flush
Description copied from class:CodedOutputStreamFlushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.- Specified by:
flushin classCodedOutputStream- Throws:
IOException
-
write
- Specified by:
writein classCodedOutputStream- Throws:
IOException
-
flushIfNotAvailable
- Throws:
IOException
-
doFlush
- Throws:
IOException
-