Package com.google.protobuf
Class CodedOutputStreamWriter
- java.lang.Object
-
- com.google.protobuf.CodedOutputStreamWriter
-
- All Implemented Interfaces:
Writer
@CheckReturnValue @ExperimentalApi final class CodedOutputStreamWriter extends java.lang.Object implements Writer
An adapter between theWriterinterface andCodedOutputStream.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.protobuf.Writer
Writer.FieldOrder
-
-
Field Summary
Fields Modifier and Type Field Description private CodedOutputStreamoutput
-
Constructor Summary
Constructors Modifier Constructor Description privateCodedOutputStreamWriter(CodedOutputStream output)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Writer.FieldOrderfieldOrder()Indicates the order in which the fields are written by thisWriter.static CodedOutputStreamWriterforCodedOutput(CodedOutputStream output)intgetTotalBytesWritten()voidwriteBool(int fieldNumber, boolean value)Writes a field of typeFieldType.BOOL.voidwriteBoolList(int fieldNumber, java.util.List<java.lang.Boolean> value, boolean packed)Writes a list field of typeFieldType.BOOL.private voidwriteBoolListInternal(int fieldNumber, BooleanArrayList value, boolean packed)private voidwriteBoolListInternal(int fieldNumber, java.util.List<java.lang.Boolean> value, boolean packed)voidwriteBytes(int fieldNumber, ByteString value)Writes a field of typeFieldType.BYTES.voidwriteBytesList(int fieldNumber, java.util.List<ByteString> value)Writes a list field of typeFieldType.BYTES.private <V> voidwriteDeterministicBooleanMapEntry(int fieldNumber, boolean key, V value, MapEntryLite.Metadata<java.lang.Boolean,V> metadata)private <V> voidwriteDeterministicIntegerMap(int fieldNumber, MapEntryLite.Metadata<java.lang.Integer,V> metadata, java.util.Map<java.lang.Integer,V> map)private <V> voidwriteDeterministicLongMap(int fieldNumber, MapEntryLite.Metadata<java.lang.Long,V> metadata, java.util.Map<java.lang.Long,V> map)private <K,V>
voidwriteDeterministicMap(int fieldNumber, MapEntryLite.Metadata<K,V> metadata, java.util.Map<K,V> map)private <V> voidwriteDeterministicStringMap(int fieldNumber, MapEntryLite.Metadata<java.lang.String,V> metadata, java.util.Map<java.lang.String,V> map)voidwriteDouble(int fieldNumber, double value)Writes a field of typeFieldType.DOUBLE.voidwriteDoubleList(int fieldNumber, java.util.List<java.lang.Double> value, boolean packed)Writes a list field of typeFieldType.DOUBLE.private voidwriteDoubleListInternal(int fieldNumber, DoubleArrayList value, boolean packed)private voidwriteDoubleListInternal(int fieldNumber, java.util.List<java.lang.Double> value, boolean packed)voidwriteEndGroup(int fieldNumber)Deprecated.voidwriteEnum(int fieldNumber, int value)Writes a field of typeFieldType.ENUM.voidwriteEnumList(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.ENUM.private voidwriteEnumListInternal(int fieldNumber, IntArrayList value, boolean packed)private voidwriteEnumListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteFixed32(int fieldNumber, int value)Writes a field of typeFieldType.FIXED32.voidwriteFixed32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.FIXED32.private voidwriteFixed32ListInternal(int fieldNumber, IntArrayList value, boolean packed)private voidwriteFixed32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteFixed64(int fieldNumber, long value)Writes a field of typeFieldType.FIXED64.voidwriteFixed64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)Writes a list field of typeFieldType.FIXED64.private voidwriteFixed64ListInternal(int fieldNumber, LongArrayList value, boolean packed)private voidwriteFixed64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)voidwriteFloat(int fieldNumber, float value)Writes a field of typeFieldType.FLOAT.voidwriteFloatList(int fieldNumber, java.util.List<java.lang.Float> value, boolean packed)Writes a list field of typeFieldType.FLOAT.private voidwriteFloatListInternal(int fieldNumber, FloatArrayList value, boolean packed)private voidwriteFloatListInternal(int fieldNumber, java.util.List<java.lang.Float> value, boolean packed)voidwriteGroup(int fieldNumber, java.lang.Object value)Deprecated.voidwriteGroup(int fieldNumber, java.lang.Object value, Schema schema)Writes a field of typeFieldType.GROUP.voidwriteGroupList(int fieldNumber, java.util.List<?> value)Deprecated.voidwriteGroupList(int fieldNumber, java.util.List<?> value, Schema schema)Writes a list field of typeFieldType.GROUP.voidwriteInt32(int fieldNumber, int value)Writes a field of typeFieldType.INT32.voidwriteInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.INT32.private voidwriteInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed)private voidwriteInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteInt64(int fieldNumber, long value)Writes a field of typeFieldType.INT64.voidwriteInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)Writes a list field of typeFieldType.INT64.private voidwriteInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed)private voidwriteInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)private voidwriteLazyString(int fieldNumber, java.lang.Object value)<K,V>
voidwriteMap(int fieldNumber, MapEntryLite.Metadata<K,V> metadata, java.util.Map<K,V> map)Writes a map field.voidwriteMessage(int fieldNumber, java.lang.Object value)Writes a field of typeFieldType.MESSAGE.voidwriteMessage(int fieldNumber, java.lang.Object value, Schema schema)Writes a field of typeFieldType.MESSAGE.voidwriteMessageList(int fieldNumber, java.util.List<?> value)Writes a list field of typeFieldType.MESSAGE.voidwriteMessageList(int fieldNumber, java.util.List<?> value, Schema schema)Writes a list field of typeFieldType.MESSAGE.voidwriteMessageSetItem(int fieldNumber, java.lang.Object value)Writes a message field inMessageSetwire-format.voidwriteSFixed32(int fieldNumber, int value)Writes a field of typeFieldType.SFIXED32.voidwriteSFixed32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.SFIXED32.private voidwriteSFixed32ListInternal(int fieldNumber, IntArrayList value, boolean packed)private voidwriteSFixed32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteSFixed64(int fieldNumber, long value)Writes a field of typeFieldType.SFIXED64.voidwriteSFixed64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)Writes a list field of typeFieldType.SFIXED64.private voidwriteSFixed64ListInternal(int fieldNumber, LongArrayList value, boolean packed)private voidwriteSFixed64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)voidwriteSInt32(int fieldNumber, int value)Writes a field of typeFieldType.SINT32.voidwriteSInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.SINT32.private voidwriteSInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed)voidwriteSInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteSInt64(int fieldNumber, long value)Writes a field of typeFieldType.SINT64.voidwriteSInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)Writes a list field of typeFieldType.SINT64.private voidwriteSInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed)private voidwriteSInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)voidwriteStartGroup(int fieldNumber)Deprecated.voidwriteString(int fieldNumber, java.lang.String value)Writes a field of typeFieldType.STRING.voidwriteStringList(int fieldNumber, java.util.List<java.lang.String> value)Writes a list field of typeFieldType.STRING.voidwriteUInt32(int fieldNumber, int value)Writes a field of typeFieldType.UINT32.voidwriteUInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)Writes a list field of typeFieldType.UINT32.private voidwriteUInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed)voidwriteUInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed)voidwriteUInt64(int fieldNumber, long value)Writes a field of typeFieldType.UINT64.voidwriteUInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)Writes a list field of typeFieldType.UINT64.private voidwriteUInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed)private voidwriteUInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed)
-
-
-
Field Detail
-
output
private final CodedOutputStream output
-
-
Constructor Detail
-
CodedOutputStreamWriter
private CodedOutputStreamWriter(CodedOutputStream output)
-
-
Method Detail
-
forCodedOutput
public static CodedOutputStreamWriter forCodedOutput(CodedOutputStream output)
-
fieldOrder
public Writer.FieldOrder fieldOrder()
Description copied from interface:WriterIndicates the order in which the fields are written by thisWriter.- Specified by:
fieldOrderin interfaceWriter
-
getTotalBytesWritten
public int getTotalBytesWritten()
-
writeSFixed32
public void writeSFixed32(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.SFIXED32.- Specified by:
writeSFixed32in interfaceWriter- Throws:
java.io.IOException
-
writeInt64
public void writeInt64(int fieldNumber, long value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.INT64.- Specified by:
writeInt64in interfaceWriter- Throws:
java.io.IOException
-
writeSFixed64
public void writeSFixed64(int fieldNumber, long value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.SFIXED64.- Specified by:
writeSFixed64in interfaceWriter- Throws:
java.io.IOException
-
writeFloat
public void writeFloat(int fieldNumber, float value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.FLOAT.- Specified by:
writeFloatin interfaceWriter- Throws:
java.io.IOException
-
writeDouble
public void writeDouble(int fieldNumber, double value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.DOUBLE.- Specified by:
writeDoublein interfaceWriter- Throws:
java.io.IOException
-
writeEnum
public void writeEnum(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.ENUM.
-
writeUInt64
public void writeUInt64(int fieldNumber, long value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.UINT64.- Specified by:
writeUInt64in interfaceWriter- Throws:
java.io.IOException
-
writeInt32
public void writeInt32(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.INT32.- Specified by:
writeInt32in interfaceWriter- Throws:
java.io.IOException
-
writeFixed64
public void writeFixed64(int fieldNumber, long value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.FIXED64.- Specified by:
writeFixed64in interfaceWriter- Throws:
java.io.IOException
-
writeFixed32
public void writeFixed32(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.FIXED32.- Specified by:
writeFixed32in interfaceWriter- Throws:
java.io.IOException
-
writeBool
public void writeBool(int fieldNumber, boolean value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.BOOL.
-
writeString
public void writeString(int fieldNumber, java.lang.String value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.STRING.- Specified by:
writeStringin interfaceWriter- Throws:
java.io.IOException
-
writeBytes
public void writeBytes(int fieldNumber, ByteString value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.BYTES.- Specified by:
writeBytesin interfaceWriter- Throws:
java.io.IOException
-
writeUInt32
public void writeUInt32(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.UINT32.- Specified by:
writeUInt32in interfaceWriter- Throws:
java.io.IOException
-
writeSInt32
public void writeSInt32(int fieldNumber, int value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.SINT32.- Specified by:
writeSInt32in interfaceWriter- Throws:
java.io.IOException
-
writeSInt64
public void writeSInt64(int fieldNumber, long value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.SINT64.- Specified by:
writeSInt64in interfaceWriter- Throws:
java.io.IOException
-
writeMessage
public void writeMessage(int fieldNumber, java.lang.Object value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.MESSAGE.- Specified by:
writeMessagein interfaceWriter- Throws:
java.io.IOException
-
writeMessage
public void writeMessage(int fieldNumber, java.lang.Object value, Schema schema) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.MESSAGE.- Specified by:
writeMessagein interfaceWriter- Throws:
java.io.IOException
-
writeGroup
@Deprecated public void writeGroup(int fieldNumber, java.lang.Object value) throws java.io.IOExceptionDeprecated.Description copied from interface:WriterWrites a field of typeFieldType.GROUP.- Specified by:
writeGroupin interfaceWriter- Throws:
java.io.IOException
-
writeGroup
public void writeGroup(int fieldNumber, java.lang.Object value, Schema schema) throws java.io.IOExceptionDescription copied from interface:WriterWrites a field of typeFieldType.GROUP.- Specified by:
writeGroupin interfaceWriter- Throws:
java.io.IOException
-
writeStartGroup
@Deprecated public void writeStartGroup(int fieldNumber) throws java.io.IOExceptionDeprecated.Description copied from interface:WriterWrites a single start group tag.- Specified by:
writeStartGroupin interfaceWriter- Throws:
java.io.IOException
-
writeEndGroup
@Deprecated public void writeEndGroup(int fieldNumber) throws java.io.IOExceptionDeprecated.Description copied from interface:WriterWrites a single end group tag.- Specified by:
writeEndGroupin interfaceWriter- Throws:
java.io.IOException
-
writeMessageSetItem
public final void writeMessageSetItem(int fieldNumber, java.lang.Object value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a message field inMessageSetwire-format.- Specified by:
writeMessageSetItemin interfaceWritervalue- A message instance or an opaqueByteStringfor an unknown field.- Throws:
java.io.IOException
-
writeInt32List
public void writeInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.INT32.- Specified by:
writeInt32Listin interfaceWriter- Throws:
java.io.IOException
-
writeInt32ListInternal
private void writeInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt32ListInternal
private void writeInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFixed32List
public void writeFixed32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.FIXED32.- Specified by:
writeFixed32Listin interfaceWriter- Throws:
java.io.IOException
-
writeFixed32ListInternal
private void writeFixed32ListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFixed32ListInternal
private void writeFixed32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt64List
public void writeInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.INT64.- Specified by:
writeInt64Listin interfaceWriter- Throws:
java.io.IOException
-
writeInt64ListInternal
private void writeInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeInt64ListInternal
private void writeInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeUInt64List
public void writeUInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.UINT64.- Specified by:
writeUInt64Listin interfaceWriter- Throws:
java.io.IOException
-
writeUInt64ListInternal
private void writeUInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeUInt64ListInternal
private void writeUInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFixed64List
public void writeFixed64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.FIXED64.- Specified by:
writeFixed64Listin interfaceWriter- Throws:
java.io.IOException
-
writeFixed64ListInternal
private void writeFixed64ListInternal(int fieldNumber, LongArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFixed64ListInternal
private void writeFixed64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFloatList
public void writeFloatList(int fieldNumber, java.util.List<java.lang.Float> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.FLOAT.- Specified by:
writeFloatListin interfaceWriter- Throws:
java.io.IOException
-
writeFloatListInternal
private void writeFloatListInternal(int fieldNumber, FloatArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeFloatListInternal
private void writeFloatListInternal(int fieldNumber, java.util.List<java.lang.Float> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeDoubleList
public void writeDoubleList(int fieldNumber, java.util.List<java.lang.Double> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.DOUBLE.- Specified by:
writeDoubleListin interfaceWriter- Throws:
java.io.IOException
-
writeDoubleListInternal
private void writeDoubleListInternal(int fieldNumber, DoubleArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeDoubleListInternal
private void writeDoubleListInternal(int fieldNumber, java.util.List<java.lang.Double> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeEnumList
public void writeEnumList(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.ENUM.- Specified by:
writeEnumListin interfaceWriter- Throws:
java.io.IOException
-
writeEnumListInternal
private void writeEnumListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeEnumListInternal
private void writeEnumListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeBoolList
public void writeBoolList(int fieldNumber, java.util.List<java.lang.Boolean> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.BOOL.- Specified by:
writeBoolListin interfaceWriter- Throws:
java.io.IOException
-
writeBoolListInternal
private void writeBoolListInternal(int fieldNumber, BooleanArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeBoolListInternal
private void writeBoolListInternal(int fieldNumber, java.util.List<java.lang.Boolean> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeStringList
public void writeStringList(int fieldNumber, java.util.List<java.lang.String> value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.STRING.- Specified by:
writeStringListin interfaceWriter- Throws:
java.io.IOException
-
writeLazyString
private void writeLazyString(int fieldNumber, java.lang.Object value) throws java.io.IOException- Throws:
java.io.IOException
-
writeBytesList
public void writeBytesList(int fieldNumber, java.util.List<ByteString> value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.BYTES.- Specified by:
writeBytesListin interfaceWriter- Throws:
java.io.IOException
-
writeUInt32List
public void writeUInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.UINT32.- Specified by:
writeUInt32Listin interfaceWriter- Throws:
java.io.IOException
-
writeUInt32ListInternal
private void writeUInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeUInt32ListInternal
public void writeUInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSFixed32List
public void writeSFixed32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.SFIXED32.- Specified by:
writeSFixed32Listin interfaceWriter- Throws:
java.io.IOException
-
writeSFixed32ListInternal
private void writeSFixed32ListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSFixed32ListInternal
private void writeSFixed32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSFixed64List
public void writeSFixed64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.SFIXED64.- Specified by:
writeSFixed64Listin interfaceWriter- Throws:
java.io.IOException
-
writeSFixed64ListInternal
private void writeSFixed64ListInternal(int fieldNumber, LongArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSFixed64ListInternal
private void writeSFixed64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSInt32List
public void writeSInt32List(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.SINT32.- Specified by:
writeSInt32Listin interfaceWriter- Throws:
java.io.IOException
-
writeSInt32ListInternal
private void writeSInt32ListInternal(int fieldNumber, IntArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSInt32ListInternal
public void writeSInt32ListInternal(int fieldNumber, java.util.List<java.lang.Integer> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSInt64List
public void writeSInt64List(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.SINT64.- Specified by:
writeSInt64Listin interfaceWriter- Throws:
java.io.IOException
-
writeSInt64ListInternal
private void writeSInt64ListInternal(int fieldNumber, LongArrayList value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeSInt64ListInternal
private void writeSInt64ListInternal(int fieldNumber, java.util.List<java.lang.Long> value, boolean packed) throws java.io.IOException- Throws:
java.io.IOException
-
writeMessageList
public void writeMessageList(int fieldNumber, java.util.List<?> value) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.MESSAGE.- Specified by:
writeMessageListin interfaceWriter- Throws:
java.io.IOException
-
writeMessageList
public void writeMessageList(int fieldNumber, java.util.List<?> value, Schema schema) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.MESSAGE.- Specified by:
writeMessageListin interfaceWriter- Throws:
java.io.IOException
-
writeGroupList
@Deprecated public void writeGroupList(int fieldNumber, java.util.List<?> value) throws java.io.IOExceptionDeprecated.Description copied from interface:WriterWrites a list field of typeFieldType.GROUP.- Specified by:
writeGroupListin interfaceWriter- Throws:
java.io.IOException
-
writeGroupList
public void writeGroupList(int fieldNumber, java.util.List<?> value, Schema schema) throws java.io.IOExceptionDescription copied from interface:WriterWrites a list field of typeFieldType.GROUP.- Specified by:
writeGroupListin interfaceWriter- Throws:
java.io.IOException
-
writeMap
public <K,V> void writeMap(int fieldNumber, MapEntryLite.Metadata<K,V> metadata, java.util.Map<K,V> map) throws java.io.IOExceptionDescription copied from interface:WriterWrites a map field.
-
writeDeterministicMap
private <K,V> void writeDeterministicMap(int fieldNumber, MapEntryLite.Metadata<K,V> metadata, java.util.Map<K,V> map) throws java.io.IOException- Throws:
java.io.IOException
-
writeDeterministicBooleanMapEntry
private <V> void writeDeterministicBooleanMapEntry(int fieldNumber, boolean key, V value, MapEntryLite.Metadata<java.lang.Boolean,V> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
writeDeterministicIntegerMap
private <V> void writeDeterministicIntegerMap(int fieldNumber, MapEntryLite.Metadata<java.lang.Integer,V> metadata, java.util.Map<java.lang.Integer,V> map) throws java.io.IOException- Throws:
java.io.IOException
-
writeDeterministicLongMap
private <V> void writeDeterministicLongMap(int fieldNumber, MapEntryLite.Metadata<java.lang.Long,V> metadata, java.util.Map<java.lang.Long,V> map) throws java.io.IOException- Throws:
java.io.IOException
-
writeDeterministicStringMap
private <V> void writeDeterministicStringMap(int fieldNumber, MapEntryLite.Metadata<java.lang.String,V> metadata, java.util.Map<java.lang.String,V> map) throws java.io.IOException- Throws:
java.io.IOException
-
-