public class VariableLengthNumberCodec extends Object implements NumberCodec
| Constructor and Description |
|---|
VariableLengthNumberCodec(ObjectInputStream ois) |
VariableLengthNumberCodec(ObjectOutputStream oos) |
| Modifier and Type | Method and Description |
|---|---|
double |
readDouble() |
int |
readInt() |
long |
readLong() |
int |
readSignedInt() |
long |
readSignedLong() |
long |
writeDouble(double value) |
long |
writeInt(int value) |
long |
writeLong(long value)
This method only works for value >= 0.
|
long |
writeSignedInt(int value) |
long |
writeSignedLong(long value) |
public VariableLengthNumberCodec(ObjectInputStream ois) throws IOException
IOExceptionpublic VariableLengthNumberCodec(ObjectOutputStream oos) throws IOException
IOExceptionpublic long writeInt(int value)
throws IOException
writeInt in interface NumberCodecIOExceptionpublic long writeLong(long value)
throws IOException
writeSignedLong(long).writeLong in interface NumberCodecvalue - IOExceptionpublic int readInt()
throws IOException
readInt in interface NumberCodecIOExceptionpublic long readLong()
throws IOException
readLong in interface NumberCodecIOExceptionpublic int readSignedInt()
throws IOException
readSignedInt in interface NumberCodecIOExceptionpublic long readSignedLong()
throws IOException
readSignedLong in interface NumberCodecIOExceptionpublic long writeSignedInt(int value)
throws IOException
writeSignedInt in interface NumberCodecIOExceptionpublic long writeSignedLong(long value)
throws IOException
writeSignedLong in interface NumberCodecIOExceptionpublic long writeDouble(double value)
throws IOException
writeDouble in interface NumberCodecIOExceptionpublic double readDouble()
throws IOException
readDouble in interface NumberCodecIOExceptionCopyright © 2017. All rights reserved.