cdm/src/main/java/ucar/atd/dorade/DoradeDescriptor.java
protected static String peekName(RandomAccessFile file)
          throws DescriptorException {
    try {
      long filepos = file.getFilePointer();
      byte[] nameBytes = new byte[4];
      if (file.read(nameBytes) == -1)
        return null;  // EOF
      file.seek(filepos);
      return new String(nameBytes, CDM.utf8Charset);

    } catch (IOException ex) {
      throw new DescriptorException(ex);
    }
  }
protected static String peekName(RandomAccessFile file)
          throws DescriptorException {
    try {
      long filepos = file.getFilePointer();
      byte[] nameBytes = new byte[4];
      if (file.read(nameBytes) == -1)
        return null;  // EOF
      file.seek(filepos);
      return new String(nameBytes, CDM.utf8Charset);

    } catch (IOException ex) {
      throw new DescriptorException(ex);
    }
  }
protected static String peekName ( RandomAccessFile file ) throws DescriptorException { try { long filepos = file . getFilePointer ( ) ; byte [ ] nameBytes = new byte [ 4 ] ; if ( file . read ( nameBytes ) == - 1 ) return null ; // EOF file . seek ( filepos ) ; return new String ( nameBytes , CDM . utf8Charset ) ; } catch ( IOException ex ) { throw new DescriptorException ( ex ) ; } }
Return the name of the DORADE descriptor at the current location
in the file.  The current location will not be changed.

@param file the DORADE sweep file, positioned at the beginning of a
descriptor
@return the name of the DORADE descriptor starting at the current
file position, or null if no descriptor name is available
@throws DescriptorException
Return the name of the DORADE descriptor at the current location in the file . The current location will not be changed .