public String getScalarString ( int recnum , StructureMembers . Member m ) { if ( m . getDataType ( ) == DataType . CHAR ) { ArrayChar data = ( ArrayChar ) m . getDataArray ( ) ; return data . getString ( recnum ) ; } if ( m . getDataType ( ) == DataType . STRING ) { Array data = m . getDataArray ( ) ; return ( String ) data . getObject ( recnum ) ; } throw new IllegalArgumentException ( "Type is " + m . getDataType ( ) + ", must be String or char" ) ; }
Get member data of type String or char .