Top Description Fields Constructors Methods
org.jboss.marshalling.util

public Class IntReadField

extends ReadField
Class Inheritance
Imports
org.jboss.marshalling.reflect.SerializableField, java.io.IOException

A read field whose value is an int type.

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
IntReadField(final SerializableField
the serializable field
field
,
final int
the value
value
)

Construct a new instance.

public
IntReadField(final SerializableField
the serializable field
field
)

Construct a new instance with the default value.

Method Summary

Modifier and TypeMethod and Description
public int
getInt()

Overrides org.jboss.marshalling.util.ReadField.getInt.

Get the integer value of this field.
public Kind
getKind()

Implements abstract org.jboss.marshalling.util.ReadField.getKind.

Get the kind of field represented by this object.
Inherited from org.jboss.marshalling.util.ReadField:
compareTogetBooleangetBytegetChargetDoublegetFloatgetLonggetNamegetObjectgetShortisDefaulted

Field Detail

valueback to summary
private final int value

Constructor Detail

IntReadFieldback to summary
public IntReadField(final SerializableField field, final int value)

Construct a new instance.

Parameters
field:SerializableField

the serializable field

value:int

the value

IntReadFieldback to summary
public IntReadField(final SerializableField field)

Construct a new instance with the default value.

Parameters
field:SerializableField

the serializable field

Method Detail

getIntback to summary
public int getInt() throws IOException

Overrides org.jboss.marshalling.util.ReadField.getInt.

Doc from org.jboss.marshalling.util.ReadField.getInt.

Get the integer value of this field.

Returns:int

the integer value of this field

Exceptions
IOException:
if the value cannot be read
getKindback to summary
public Kind getKind()

Implements abstract org.jboss.marshalling.util.ReadField.getKind.

Doc from org.jboss.marshalling.util.ReadField.getKind.

Get the kind of field represented by this object.

Returns:Kind

the kind of field represented by this object