visad.data.dods
Class Int32AttributeAdapter
java.lang.Object
visad.data.dods.Adapter
visad.data.dods.AttributeAdapter
visad.data.dods.NumericAttributeAdapter
visad.data.dods.FloatAttributeAdapter
visad.data.dods.Int32AttributeAdapter
- Direct Known Subclasses:
- ByteAttributeAdapter, Int16AttributeAdapter, UInt16AttributeAdapter
public class Int32AttributeAdapter
- extends FloatAttributeAdapter
Provides support for adapting a DODS Attribute.INT32
attributs to
the VisAD data-import context.
Instances are immutable.
- Author:
- Steven R. Emmerson
Method Summary |
protected float |
floatValue(String spec)
Returns the numeric value corresponding to a floating-point
string specification. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Int32AttributeAdapter
public Int32AttributeAdapter(String name,
dods.dap.Attribute attr)
throws VisADException
- Constructs from a name and an appropriate attribute.
- Parameters:
name
- The name of the attribute.attr
- The attribute. Must have the appropriate type.
- Throws:
VisADException
- VisAD failure. Probably the attribute has an
inappropriate type.
floatValue
protected float floatValue(String spec)
- Returns the numeric value corresponding to a floating-point
string specification.
- Specified by:
floatValue
in class FloatAttributeAdapter
- Parameters:
spec
- A floating-point string specification.
- Returns:
- The numeric value corresponding to the
string specification.