public byte getScalarByte ( int recnum , StructureMembers . Member m ) { if ( ! ( m . getDataType ( ) . getPrimitiveClassType ( ) == byte . class ) ) throw new IllegalArgumentException ( "Type is " + m . getDataType ( ) + ", must be byte" ) ; Array data = m . getDataArray ( ) ; return data . getByte ( recnum * m . getSize ( ) ) ; // gets first one in the array }
Get scalar member data of type byte .