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

public Class ByteReadField

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

A read field whose value is a byte type.

Field Summary

Modifier and TypeField and Description
private final byte

Constructor Summary

AccessConstructor and Description
public
ByteReadField(final SerializableField
the serializable field
field
,
final byte
the value
value
)

Construct a new instance.

public
ByteReadField(final SerializableField
the serializable field
field
)

Construct a new instance with the default value.

Method Summary

Modifier and TypeMethod and Description
public byte
getByte()

Overrides org.jboss.marshalling.util.ReadField.getByte.

Get the byte 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:
compareTogetBooleangetChargetDoublegetFloatgetIntgetLonggetNamegetObjectgetShortisDefaulted

Field Detail

valueback to summary
private final byte value

Constructor Detail

ByteReadFieldback to summary
public ByteReadField(final SerializableField field, final byte value)

Construct a new instance.

Parameters
field:SerializableField

the serializable field

value:byte

the value

ByteReadFieldback to summary
public ByteReadField(final SerializableField field)

Construct a new instance with the default value.

Parameters
field:SerializableField

the serializable field

Method Detail

getByteback to summary
public byte getByte() throws IOException

Overrides org.jboss.marshalling.util.ReadField.getByte.

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

Get the byte value of this field.

Returns:byte

the byte 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