cdm/src/main/java/ucar/nc2/iosp/nids/Nidsheader.java
public static String readInString(ByteBuffer datainput)
            throws IOException
    {
        StringBuffer stringbuffer = new StringBuffer();
        int i = datainput.getInt();
        for(int j = 0; j < i; j++)
        {
            char c = (char)(datainput.get() & 0xff);
            stringbuffer.append(c);
        }

        int k = i % 4;
        if(k != 0)
            k = 4 - k;
        for(int l = 0; l < k; l++)
            datainput.get();

        return stringbuffer.toString();
    }
public static String readInString(ByteBuffer datainput)
            throws IOException
    {
        StringBuffer stringbuffer = new StringBuffer();
        int i = datainput.getInt();
        for(int j = 0; j < i; j++)
        {
            char c = (char)(datainput.get() & 0xff);
            stringbuffer.append(c);
        }

        int k = i % 4;
        if(k != 0)
            k = 4 - k;
        for(int l = 0; l < k; l++)
            datainput.get();

        return stringbuffer.toString();
    }
for level3 176 product

@param datainput
@return  string