Interface IntSerializer
-
- All Known Implementing Classes:
IndexSerializer
public interface IntSerializerWrites/reads an integer to/from a binary stream.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default intreadInt(DataInput input)Read an integer from the specified input stream.default intsize(int value)default voidwriteInt(DataOutput output, int value)Writes the specified integer to the specified output stream
-
-
-
Method Detail
-
writeInt
default void writeInt(DataOutput output, int value) throws IOException
Writes the specified integer to the specified output stream- Parameters:
output- the data output streamvalue- an integer value- Throws:
IOException- if an I/O error occurs
-
readInt
default int readInt(DataInput input) throws IOException
Read an integer from the specified input stream.- Parameters:
input- a data input stream- Returns:
- the integer value
- Throws:
IOException- if an I/O error occurs
-
size
default int size(int value)
-
-