## org.das2.qds.buffer.AsciiDataSet

Sometimes you might just have numbers encoded in ASCII within a binary stream, or fixed-length fields allow such parsing. If the unit has been set to an enumeration (or nominal) unit, then strings can be extracted as well, but this must be done using the setUnits method.

## AsciiDataSet( int rank, int reclen, int recoffs, int len0, int len1, int len2, int len3, java.nio.ByteBuffer back, Object type )

Like the other constructors, but the type is needed as well to get the number of bytes.

## putValue

putValue( double d ) → void

### Parameters

d - a double

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]
putValue( int i0, double d ) → void [view source]
putValue( int i0, int i1, double d ) → void [view source]
putValue( int i0, int i1, int i2, double d ) → void [view source]
putValue( int i0, int i1, int i2, int i3, double d ) → void [view source]

## setLengthBytes

setLengthBytes( int length ) → void

### Parameters

length - an int

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## setUnits

setUnits( Units units ) → void

### Parameters

units - an Units

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## value

value( ) → double

### Returns:

double
[search for examples] [view on GitHub] [view on old javadoc] [view source]
value( int i0 ) → double [view source]
value( int i0, int i1 ) → double [view source]
value( int i0, int i1, int i2 ) → double [view source]
value( int i0, int i1, int i2, int i3 ) → double [view source]