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 io.opentelemetry.exporter.internal.marshal.CodedOutputStream.AbstractBufferedEncoder
buffer, limit, position, totalBytesWritten
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
doFlush()
(package private) void
flush()
Flushes the stream and forces any buffered bytes to be written.private void
flushIfNotAvailable
(int requiredSize) (package private) void
reset
(OutputStream out) (package private) void
write
(byte value) (package private) void
write
(byte[] value, int offset, int length) (package private) void
write
(ByteBuffer value) (package private) void
writeByteArrayNoTag
(byte[] value, int offset, int length) Write abytes
field to the stream.(package private) void
writeByteBufferNoTag
(ByteBuffer value) (package private) void
writeFixed32NoTag
(int value) Write afixed32
field to the stream.(package private) void
writeFixed64NoTag
(long value) Write afixed64
field to the stream.(package private) void
writeInt32NoTag
(int value) Write anint32
field to the stream.(package private) void
writeUInt32NoTag
(int value) Write auint32
field to the stream.(package private) void
writeUInt64NoTag
(long value) Write auint64
field to the stream.Methods inherited from class io.opentelemetry.exporter.internal.marshal.CodedOutputStream.AbstractBufferedEncoder
buffer, bufferFixed32NoTag, bufferFixed64NoTag, bufferUInt32NoTag, bufferUInt64NoTag
Methods inherited from class io.opentelemetry.exporter.internal.marshal.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:CodedOutputStream
Write abytes
field to the stream.- Specified by:
writeByteArrayNoTag
in classCodedOutputStream
- Throws:
IOException
-
writeByteBufferNoTag
- Specified by:
writeByteBufferNoTag
in classCodedOutputStream
- Throws:
IOException
-
write
- Throws:
IOException
-
write
- Specified by:
write
in classCodedOutputStream
- Throws:
IOException
-
writeInt32NoTag
Description copied from class:CodedOutputStream
Write anint32
field to the stream.- Specified by:
writeInt32NoTag
in classCodedOutputStream
- Throws:
IOException
-
writeUInt32NoTag
Description copied from class:CodedOutputStream
Write auint32
field to the stream.- Specified by:
writeUInt32NoTag
in classCodedOutputStream
- Throws:
IOException
-
writeFixed32NoTag
Description copied from class:CodedOutputStream
Write afixed32
field to the stream.- Specified by:
writeFixed32NoTag
in classCodedOutputStream
- Throws:
IOException
-
writeUInt64NoTag
Description copied from class:CodedOutputStream
Write auint64
field to the stream.- Specified by:
writeUInt64NoTag
in classCodedOutputStream
- Throws:
IOException
-
writeFixed64NoTag
Description copied from class:CodedOutputStream
Write afixed64
field to the stream.- Specified by:
writeFixed64NoTag
in classCodedOutputStream
- Throws:
IOException
-
flush
Description copied from class:CodedOutputStream
Flushes the stream and forces any buffered bytes to be written. This does not flush the underlying OutputStream.- Specified by:
flush
in classCodedOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classCodedOutputStream
- Throws:
IOException
-
flushIfNotAvailable
- Throws:
IOException
-
doFlush
- Throws:
IOException
-