cdm/src/main/java/ucar/ma2/StructureDataW.java
public String getScalarString(StructureMembers.Member m) {
    if (m.getDataType() == DataType.STRING) {
      Array data = getArray(m);
      if (data == null)
        data = getArray(m);
      return (String) data.getObject(0);
    } else {
      char[] ba = getJavaArrayChar(m);
      int count = 0;
      while (count < ba.length) {
        if (0 == ba[count]) break;
        count++;
      }
      return new String(ba, 0, count);
    }
  }
public String getScalarString(StructureMembers.Member m) {
    if (m.getDataType() == DataType.STRING) {
      Array data = getArray(m);
      if (data == null)
        data = getArray(m);
      return (String) data.getObject(0);
    } else {
      char[] ba = getJavaArrayChar(m);
      int count = 0;
      while (count < ba.length) {
        if (0 == ba[count]) break;
        count++;
      }
      return new String(ba, 0, count);
    }
  }
public String getScalarString ( StructureMembers . Member m ) { if ( m . getDataType ( ) == DataType . STRING ) { Array data = getArray ( m ) ; if ( data == null ) data = getArray ( m ) ; return ( String ) data . getObject ( 0 ) ; } else { char [ ] ba = getJavaArrayChar ( m ) ; int count = 0 ; while ( count < ba . length ) { if ( 0 == ba [ count ] ) break ; count ++ ; } return new String ( ba , 0 , count ) ; } }
Get String value, from rank 0 String or rank 1 char member array.
@param m get data from this StructureMembers.Member. Must be of type char or String.
Get String value from rank 0 String or rank 1 char member array .