org.das2.stream
Class DataTransferType

java.lang.Object
  extended by org.das2.stream.DataTransferType

public class DataTransferType
extends java.lang.Object


Field Summary
static DataTransferType LITTLE_ENDIAN_REAL4
           
static DataTransferType LITTLE_ENDIAN_REAL8
           
static DataTransferType SUN_REAL4
           
static DataTransferType SUN_REAL8
           
 
Method Summary
static DataTransferType getByName(java.lang.String name)
           
 int getSizeBytes()
           
 boolean isAscii()
          If type terminates a line, then use \n to delineate
 double read(java.nio.ByteBuffer buffer)
           
 java.lang.String toString()
           
 void write(double d, java.nio.ByteBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SUN_REAL4

public static final DataTransferType SUN_REAL4

SUN_REAL8

public static final DataTransferType SUN_REAL8

LITTLE_ENDIAN_REAL4

public static final DataTransferType LITTLE_ENDIAN_REAL4

LITTLE_ENDIAN_REAL8

public static final DataTransferType LITTLE_ENDIAN_REAL8
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSizeBytes

public int getSizeBytes()

getByName

public static DataTransferType getByName(java.lang.String name)

isAscii

public boolean isAscii()
If type terminates a line, then use \n to delineate


read

public double read(java.nio.ByteBuffer buffer)

write

public void write(double d,
                  java.nio.ByteBuffer buffer)