public interface PortableWriter
| Modifier and Type | Method and Description | 
|---|---|
| ObjectDataOutput | getRawDataOutput()After writing portable fields one can subsequently write remaining fields in the old-fashioned way. | 
| void | writeBoolean(String fieldName,
            boolean value)Writes a primitive boolean. | 
| void | writeBooleanArray(String fieldName,
                 boolean[] booleans)Writes a primitive boolean-array. | 
| void | writeByte(String fieldName,
         byte value)Writes a primitive byte. | 
| void | writeByteArray(String fieldName,
              byte[] bytes)Writes a primitive byte-array. | 
| void | writeChar(String fieldName,
         int value)Writes a primitive char. | 
| void | writeCharArray(String fieldName,
              char[] chars)Writes a primitive char-array. | 
| void | writeDate(String fieldName,
         LocalDate value)Writes a date field consisting of year, month of the year and day of the month | 
| void | writeDateArray(String fieldName,
              LocalDate[] values)Writes an array of Date's | 
| void | writeDecimal(String fieldName,
            BigDecimal value)Writes a decimal which is arbitrary precision and scale floating-point number | 
| void | writeDecimalArray(String fieldName,
                 BigDecimal[] values)Writes an array of Decimals | 
| void | writeDouble(String fieldName,
           double value)Writes a primitive double. | 
| void | writeDoubleArray(String fieldName,
                double[] values)Writes a primitive double array. | 
| void | writeFloat(String fieldName,
          float value)Writes a primitive float. | 
| void | writeFloatArray(String fieldName,
               float[] values)Writes a primitive float array. | 
| void | writeInt(String fieldName,
        int value)Writes a primitive int. | 
| void | writeIntArray(String fieldName,
             int[] ints)Writes a primitive int-array. | 
| void | writeLong(String fieldName,
         long value)Writes a primitive long. | 
| void | writeLongArray(String fieldName,
              long[] longs)Writes a primitive long-array. | 
| void | writeNullPortable(String fieldName,
                 int factoryId,
                 int classId)To write a null portable value, user needs to provide class and factoryIds of related class. | 
| void | writePortable(String fieldName,
             Portable portable)Writes a Portable. | 
| void | writePortableArray(String fieldName,
                  Portable[] values)Writes a an array of Portables. | 
| void | writeShort(String fieldName,
          short value)Writes a primitive short. | 
| void | writeShortArray(String fieldName,
               short[] values)Writes a primitive short-array. | 
| void | writeString(String fieldName,
           String value)Writes an UTF string. | 
| void | writeStringArray(String fieldName,
                String[] values)Writes a String-array. | 
| void | writeTime(String fieldName,
         LocalTime value)Write a time field consisting of hour, minute, seconds and nanos parts | 
| void | writeTimeArray(String fieldName,
              LocalTime[] values)Writes an array of Time's | 
| void | writeTimestamp(String fieldName,
              LocalDateTime value)Writes a timestamp field consisting of
 year, month of the year, day of the month, hour, minute, seconds, nanos parts | 
| void | writeTimestampArray(String fieldName,
                   LocalDateTime[] values)Writes an array of Timestamp's | 
| void | writeTimestampWithTimezone(String fieldName,
                          OffsetDateTime value)Writes a timestamp with timezone field consisting of
 year, month of the year, day of the month, offset seconds, hour, minute, seconds, nanos parts | 
| void | writeTimestampWithTimezoneArray(String fieldName,
                               OffsetDateTime[] values)Writes an array of TimestampWithTimezone's | 
| void | writeUTF(String fieldName,
        String value)Deprecated. 
 for the sake of better naming. Use  writeString(String, String)instead. | 
| void | writeUTFArray(String fieldName,
             String[] values)Deprecated. 
 for the sake of better naming. Use  writeStringArray(String, String[])instead. | 
void writeInt(@Nonnull String fieldName, int value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeLong(@Nonnull String fieldName, long value) throws IOException
fieldName - name of the fieldvalue - long value to be writtenIOException - in case of any exceptional case@Deprecated void writeUTF(@Nonnull String fieldName, @Nullable String value) throws IOException
writeString(String, String) instead.fieldName - name of the fieldvalue - utf string value to be writtenIOException - in case of any exceptional casevoid writeString(@Nonnull String fieldName, @Nullable String value) throws IOException
fieldName - name of the fieldvalue - utf string value to be writtenIOException - in case of any exceptional casevoid writeBoolean(@Nonnull String fieldName, boolean value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeByte(@Nonnull String fieldName, byte value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeChar(@Nonnull String fieldName, int value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeDouble(@Nonnull String fieldName, double value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeFloat(@Nonnull String fieldName, float value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writeShort(@Nonnull String fieldName, short value) throws IOException
fieldName - name of the fieldvalue - int value to be writtenIOException - in case of any exceptional casevoid writePortable(@Nonnull String fieldName, @Nullable Portable portable) throws IOException
writeNullPortable(String, int, int) to write a null PortablefieldName - name of the fieldportable - Portable to be writtenIOException - in case of any exceptional casevoid writeNullPortable(@Nonnull String fieldName, int factoryId, int classId) throws IOException
fieldName - name of the fieldfactoryId - factory ID of related portable classclassId - class ID of related portable classIOException - in case of any exceptional casevoid writeDecimal(@Nonnull String fieldName, @Nullable BigDecimal value) throws IOException
fieldName - name of the fieldvalue - BigDecimal value to be writtenIOException - in case of any exceptional casevoid writeTime(@Nonnull String fieldName, @Nullable LocalTime value) throws IOException
fieldName - name of the fieldvalue - LocalTime value to be writtenIOException - in case of any exceptional casevoid writeDate(@Nonnull String fieldName, @Nullable LocalDate value) throws IOException
fieldName - name of the fieldvalue - LocalDate value to be writtenIOException - in case of any exceptional casevoid writeTimestamp(@Nonnull String fieldName, @Nullable LocalDateTime value) throws IOException
fieldName - name of the fieldvalue - LocalDateTime value to be writtenIOException - in case of any exceptional casevoid writeTimestampWithTimezone(@Nonnull String fieldName, @Nullable OffsetDateTime value) throws IOException
fieldName - name of the fieldvalue - OffsetDateTime value to be writtenIOException - in case of any exceptional casevoid writeByteArray(@Nonnull String fieldName, @Nullable byte[] bytes) throws IOException
fieldName - name of the fieldbytes - byte array to be writtenIOException - in case of any exceptional casevoid writeBooleanArray(@Nonnull String fieldName, @Nullable boolean[] booleans) throws IOException
fieldName - name of the fieldbooleans - boolean array to be writtenIOException - in case of any exceptional casevoid writeCharArray(@Nonnull String fieldName, @Nullable char[] chars) throws IOException
fieldName - name of the fieldchars - char array to be writtenIOException - in case of any exceptional casevoid writeIntArray(@Nonnull String fieldName, @Nullable int[] ints) throws IOException
fieldName - name of the fieldints - int array to be writtenIOException - in case of any exceptional casevoid writeLongArray(@Nonnull String fieldName, @Nullable long[] longs) throws IOException
fieldName - name of the fieldlongs - long array to be writtenIOException - in case of any exceptional casevoid writeDoubleArray(@Nonnull String fieldName, @Nullable double[] values) throws IOException
fieldName - name of the fieldvalues - double array to be writtenIOException - in case of any exceptional casevoid writeFloatArray(@Nonnull String fieldName, @Nullable float[] values) throws IOException
fieldName - name of the fieldvalues - float array to be writtenIOException - in case of any exceptional casevoid writeShortArray(@Nonnull String fieldName, @Nullable short[] values) throws IOException
fieldName - name of the fieldvalues - short array to be writtenIOException - in case of any exceptional case@Deprecated void writeUTFArray(@Nonnull String fieldName, @Nullable String[] values) throws IOException
writeStringArray(String, String[]) instead.fieldName - name of the fieldvalues - String array to be writtenIOException - in case of any exceptional casevoid writeStringArray(@Nonnull String fieldName, @Nullable String[] values) throws IOException
fieldName - name of the fieldvalues - String array to be writtenIOException - in case of any exceptional casevoid writePortableArray(@Nonnull String fieldName, @Nullable Portable[] values) throws IOException
fieldName - name of the fieldvalues - portable array to be writtenIOException - in case of any exceptional casevoid writeDecimalArray(@Nonnull String fieldName, @Nullable BigDecimal[] values) throws IOException
fieldName - name of the fieldvalues - BigDecimal array to be writtenIOException - in case of any exceptional casewriteDecimal(String, BigDecimal)void writeTimeArray(@Nonnull String fieldName, @Nullable LocalTime[] values) throws IOException
fieldName - name of the fieldvalues - LocalTime array to be writtenIOException - in case of any exceptional casewriteTime(String, LocalTime)void writeDateArray(@Nonnull String fieldName, @Nullable LocalDate[] values) throws IOException
fieldName - name of the fieldvalues - LocalDate array to be writtenIOException - in case of any exceptional casewriteDate(String, LocalDate)void writeTimestampArray(@Nonnull String fieldName, @Nullable LocalDateTime[] values) throws IOException
fieldName - name of the fieldvalues - LocalDateTime array to be writtenIOException - in case of any exceptional casewriteTimestamp(String, LocalDateTime)void writeTimestampWithTimezoneArray(@Nonnull String fieldName, @Nullable OffsetDateTime[] values) throws IOException
fieldName - name of the fieldvalues - OffsetDateTime array to be writtenIOException - in case of any exceptional casewriteTimestampWithTimezone(String, OffsetDateTime)@Nonnull ObjectDataOutput getRawDataOutput() throws IOException
IOException - in case of any exceptional caseCopyright © 2022 Hazelcast, Inc.. All rights reserved.