public class ShortReadField extends ReadField
Constructor and Description |
---|
ShortReadField(SerializableField field)
Construct a new instance with the default value.
|
ShortReadField(SerializableField field,
short value)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Kind |
getKind()
Get the kind of field represented by this object.
|
short |
getShort()
Get the short value of this field.
|
public ShortReadField(SerializableField field, short value)
field
- the serializable fieldvalue
- the valuepublic ShortReadField(SerializableField field)
field
- the serializable fieldpublic Kind getKind()
public short getShort() throws IOException
getShort
in class ReadField
IOException
- if the value cannot be readCopyright © 2018 JBoss by Red Hat. All rights reserved.