|
JBoss Marshalling 1.4.3.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.marshalling.util.ReadField
public abstract class ReadField

Base class for a field which was read from the data stream.
| Constructor Summary | |
|---|---|
protected |
ReadField(String name,
boolean defaulted)
Construct a new instance. |
| Method Summary | |
|---|---|
int |
compareTo(ReadField o)
Compare this field with another on the basis of its name. |
boolean |
getBoolean()
Get the boolean value of this field. |
byte |
getByte()
Get the byte value of this field. |
char |
getChar()
Get the character value of this field. |
double |
getDouble()
Get the double value of this field. |
float |
getFloat()
Get the float value of this field. |
int |
getInt()
Get the integer value of this field. |
abstract Kind |
getKind()
Get the kind of field represented by this object. |
long |
getLong()
Get the long value of this field. |
String |
getName()
Get the field name. |
Object |
getObject()
Get the object value of this field. |
short |
getShort()
Get the short value of this field. |
boolean |
isDefaulted()
Determine whether this field was defaulted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ReadField(String name,
boolean defaulted)
name - the field namedefaulted - true if the field's value was defaulted, false otherwise| Method Detail |
|---|
public abstract Kind getKind()
public String getName()
public boolean isDefaulted()
true if this field value was defaulted, false otherwise
public boolean getBoolean()
throws IOException
IOException - if the value cannot be read
public char getChar()
throws IOException
IOException - if the value cannot be read
public float getFloat()
throws IOException
IOException - if the value cannot be read
public double getDouble()
throws IOException
IOException - if the value cannot be read
public byte getByte()
throws IOException
IOException - if the value cannot be read
public short getShort()
throws IOException
IOException - if the value cannot be read
public int getInt()
throws IOException
IOException - if the value cannot be read
public long getLong()
throws IOException
IOException - if the value cannot be read
public Object getObject()
throws IOException
IOException - if the value cannot be readpublic int compareTo(ReadField o)
compareTo in interface Comparable<ReadField>o - the other field object
|
JBoss Marshalling 1.4.3.Final | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||