cdm/src/main/java/ucar/atd/dorade/DoradeDescriptor.java
protected static void skipDescriptor(RandomAccessFile file,
                                       boolean littleEndianData)
          throws DescriptorException, java.io.IOException {
    try {
      file.readFully(new byte[4]); // skip name
      byte[] lenBytes = new byte[4];
      file.readFully(lenBytes);
      int descLen = grabInt(lenBytes, 0, littleEndianData);
      file.readFully(new byte[descLen - 8]);
    } catch (java.io.EOFException eofex) {
      return; // just leave the file at EOF
    } catch (Exception ex) {
      throw new DescriptorException(ex);
    }
  }
protected static void skipDescriptor(RandomAccessFile file,
                                       boolean littleEndianData)
          throws DescriptorException, java.io.IOException {
    try {
      file.readFully(new byte[4]); // skip name
      byte[] lenBytes = new byte[4];
      file.readFully(lenBytes);
      int descLen = grabInt(lenBytes, 0, littleEndianData);
      file.readFully(new byte[descLen - 8]);
    } catch (java.io.EOFException eofex) {
      return; // just leave the file at EOF
    } catch (Exception ex) {
      throw new DescriptorException(ex);
    }
  }
protected static void skipDescriptor ( RandomAccessFile file , boolean littleEndianData ) throws DescriptorException , java . io . IOException { try { file . readFully ( new byte [ 4 ] ) ; // skip name byte [ ] lenBytes = new byte [ 4 ] ; file . readFully ( lenBytes ) ; int descLen = grabInt ( lenBytes , 0 , littleEndianData ) ; file . readFully ( new byte [ descLen - 8 ] ) ; } catch ( java . io . EOFException eofex ) { return ; // just leave the file at EOF } catch ( Exception ex ) { throw new DescriptorException ( ex ) ; } }
Skip the current DORADE descriptor in the file, leaving the file position
at the beginning of the next descriptor (or at the end of file).

@param file the DORADE sweepfile, positioned at the beginning of a
descriptor
@throws java.io.IOException
Skip the current DORADE descriptor in the file leaving the file position at the beginning of the next descriptor ( or at the end of file ) .