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

public Class LongReadField

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

A read field whose value is a long type.

Field Summary

Modifier and TypeField and Description
private final long

Constructor Summary

AccessConstructor and Description
public
LongReadField(final SerializableField
the serializable field
field
,
final long
the value
value
)

Construct a new instance.

public
LongReadField(final SerializableField
the serializable field
field
)

Construct a new instance with the default value.

Method Summary

Modifier and TypeMethod and Description
public Kind
getKind()

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

Get the kind of field represented by this object.
public long
getLong()

Overrides org.jboss.marshalling.util.ReadField.getLong.

Get the long value of this field.
Inherited from org.jboss.marshalling.util.ReadField:
compareTogetBooleangetBytegetChargetDoublegetFloatgetIntgetNamegetObjectgetShortisDefaulted

Field Detail

valueback to summary
private final long value

Constructor Detail

LongReadFieldback to summary
public LongReadField(final SerializableField field, final long value)

Construct a new instance.

Parameters
field:SerializableField

the serializable field

value:long

the value

LongReadFieldback to summary
public LongReadField(final SerializableField field)

Construct a new instance with the default value.

Parameters
field:SerializableField

the serializable field

Method Detail

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

getLongback to summary
public long getLong() throws IOException

Overrides org.jboss.marshalling.util.ReadField.getLong.

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

Get the long value of this field.

Returns:long

the long value of this field

Exceptions
IOException:
if the value cannot be read