## org.das2.qds.buffer.UByteDataSet

Unsigned Byte. This also contains a method for extracting the data at a location as a string.

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

## collectString

collectString( java.nio.charset.Charset charset ) → String

efficiently return the data contained in the bytes presuming a string encoding. This is useful when the data is mostly binary but parts are text data. This is typically used with trim to extract text portions of data. This code shows how the length of each record in a U.S.G.S. DEM file is extracted:

     from java.nio.charset import Charset
     usascii= Charset.forName( 'US-ASCII' )
     ds=getDataSet( 'vap+bin:%s?byteOffset=858&byteLength=6' % fil.toURI() )
     from java.lang import Integer
     ncol= Integer.parseUnsignedInt( ds.collectString( usascii ).strip() )
     print ncol

### Parameters

charset - a Charset

### Returns:

the string

### See Also:

https://github.com/autoplot/dev/blob/master/demos/20190529/readUsgsDem.jyds
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## 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]

## 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]