Interface IntSerializer
- All Known Implementing Classes:
IndexSerializer
public interface IntSerializer
Writes/reads an integer to/from a binary stream.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault intRead 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 Details
-
writeInt
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
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)
-