public class FixedNumberCodec extends Object implements NumberCodec
| Constructor and Description |
|---|
FixedNumberCodec(ObjectInputStream ois) |
FixedNumberCodec(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) |
long |
writeSignedInt(int value) |
long |
writeSignedLong(long value) |
public FixedNumberCodec(ObjectInputStream ois) throws IOException
IOExceptionpublic FixedNumberCodec(ObjectOutputStream oos) throws IOException
IOExceptionpublic int readInt()
throws IOException
readInt in interface NumberCodecIOExceptionpublic long readLong()
throws IOException
readLong in interface NumberCodecIOExceptionpublic double readDouble()
throws IOException
readDouble in interface NumberCodecIOExceptionpublic long writeInt(int value)
throws IOException
writeInt in interface NumberCodecIOExceptionpublic long writeLong(long value)
throws IOException
writeLong in interface NumberCodecIOExceptionpublic long writeDouble(double value)
throws IOException
writeDouble 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 NumberCodecIOExceptionCopyright © 2017. All rights reserved.