public class PlainIntField extends AbstractDataIntField
PlainIntField
represents an integer field with plain serialized form.
It can be used for fields which are usually represented with large integer or
floating-point values, such as times, coefficients, amounts, etc.Constructor and Description |
---|
PlainIntField(int index,
String name) |
PlainIntField(int index,
String name,
SerialFieldType serialType) |
Modifier and Type | Method and Description |
---|---|
int |
readInt(com.devexperts.io.BufferedInput in)
Reads field value from specified buffered input and returns it to the caller.
|
int |
readInt(DataInput in)
Reads field value from specified data input and returns it to the caller.
|
void |
writeInt(com.devexperts.io.BufferedOutput out,
int value)
Writes specified field value into specified buffered output.
|
void |
writeInt(DataOutput out,
int value)
Writes specified field value into specified data output.
|
equals, getString, parseString, read, setString, toDouble, toInt, toString, write
getDefaultPropertyName, getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType, setRecord, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIndex, getLocalName, getName, getPropertyName, getRecord, getSerialType
public PlainIntField(int index, String name)
public PlainIntField(int index, String name, SerialFieldType serialType)
public final void writeInt(DataOutput out, int value) throws IOException
DataIntField
IOException
- as specified data output does.public final void writeInt(com.devexperts.io.BufferedOutput out, int value) throws IOException
DataIntField
IOException
- as specified data output does.public final int readInt(DataInput in) throws IOException
DataIntField
IOException
- as specified data input does.public final int readInt(com.devexperts.io.BufferedInput in) throws IOException
DataIntField
IOException
- as specified data input does.Copyright © 2002–2025 Devexperts LLC. All rights reserved.