visad.data.dods
Class UInt16AttributeAdapter

java.lang.Object
  extended by visad.data.dods.Adapter
      extended by visad.data.dods.AttributeAdapter
          extended by visad.data.dods.NumericAttributeAdapter
              extended by visad.data.dods.FloatAttributeAdapter
                  extended by visad.data.dods.Int32AttributeAdapter
                      extended by visad.data.dods.UInt16AttributeAdapter

public class UInt16AttributeAdapter
extends Int32AttributeAdapter

Provides support for adapting a DODS Attribute.UINT16 attribute to the VisAD data-import context.

Instances are immutable.

Author:
Steven R. Emmerson

Constructor Summary
UInt16AttributeAdapter(String name, dods.dap.Attribute attr)
          Constructs from a name and an appropriate attribute.
 
Method Summary
 
Methods inherited from class visad.data.dods.Int32AttributeAdapter
floatValue
 
Methods inherited from class visad.data.dods.FloatAttributeAdapter
number, visadSet
 
Methods inherited from class visad.data.dods.NumericAttributeAdapter
data, getAttributeName, getRealType
 
Methods inherited from class visad.data.dods.Adapter
attributeTable, attributeTable, getCacheStrategy, isFlat, mathType, realType, realType, realType, realType, scalarName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UInt16AttributeAdapter

public UInt16AttributeAdapter(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.