JBoss Marshalling 1.2.1.GA

org.jboss.marshalling.util
Class ReadField

java.lang.Object
  extended by org.jboss.marshalling.util.ReadField
All Implemented Interfaces:
Comparable<ReadField>
Direct Known Subclasses:
BooleanReadField, ByteReadField, CharReadField, DoubleReadField, FloatReadField, IntReadField, LongReadField, ObjectReadField, ShortReadField

public abstract class ReadField
extends Object
implements Comparable<ReadField>


Constructor Summary
protected ReadField(String name, boolean defaulted)
           
 
Method Summary
 int compareTo(ReadField o)
           
 boolean getBoolean()
           
 byte getByte()
           
 char getChar()
           
 double getDouble()
           
 float getFloat()
           
 int getInt()
           
abstract  Kind getKind()
           
 long getLong()
           
 String getName()
           
 Object getObject()
           
 short getShort()
           
 boolean isDefaulted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadField

protected ReadField(String name,
                    boolean defaulted)
Method Detail

getKind

public abstract Kind getKind()

getName

public String getName()

isDefaulted

public boolean isDefaulted()

getBoolean

public boolean getBoolean()
                   throws IOException
Throws:
IOException

getChar

public char getChar()
             throws IOException
Throws:
IOException

getFloat

public float getFloat()
               throws IOException
Throws:
IOException

getDouble

public double getDouble()
                 throws IOException
Throws:
IOException

getByte

public byte getByte()
             throws IOException
Throws:
IOException

getShort

public short getShort()
               throws IOException
Throws:
IOException

getInt

public int getInt()
           throws IOException
Throws:
IOException

getLong

public long getLong()
             throws IOException
Throws:
IOException

getObject

public Object getObject()
                 throws IOException
Throws:
IOException

compareTo

public int compareTo(ReadField o)
Specified by:
compareTo in interface Comparable<ReadField>

JBoss Marshalling 1.2.1.GA

Copyright © 2010 JBoss, a division of Red Hat, Inc.