public static boolean sweepfileIsLittleEndian(RandomAccessFile file)
          throws DescriptorException {
    int descLen;
    try {
      file.seek(0);
      //
      // skip the 4-byte descriptor name
      //
      byte[] bytes = new byte[4];
      file.readFully(bytes);
      //
      // get the descriptor length
      //
      descLen = file.readInt();
      file.seek(0);
    } catch (Exception ex) {
      throw new DescriptorException(ex);
    }
    return (descLen < 0 || descLen > 0xffffff);
  }
public static boolean sweepfileIsLittleEndian(RandomAccessFile file)
          throws DescriptorException {
    int descLen;
    try {
      file.seek(0);
      
      
      
      byte[] bytes = new byte[4];
      file.readFully(bytes);
      
      
      
      descLen = file.readInt();
      file.seek(0);
    } catch (Exception ex) {
      throw new DescriptorException(ex);
    }
    return (descLen < 0 || descLen > 0xffffff);
  }
public static boolean sweepfileIsLittleEndian ( RandomAccessFile file ) throws DescriptorException { int descLen ; try { file . seek ( 0 ) ; // // skip the 4-byte descriptor name // byte [ ] bytes = new byte [ 4 ] ; file . readFully ( bytes ) ; // // get the descriptor length // descLen = file . readInt ( ) ; file . seek ( 0 ) ; } catch ( Exception ex ) { throw new DescriptorException ( ex ) ; } return ( descLen < 0 || descLen > 0xffffff ) ; }
Determine if the given DORADE sweepfile contains little-endian data
(in violation of the DORADE definition...).

@param file the DORADE sweepfile,
@return <code>true</code> iff the file contains little-endian data
@throws DescriptorException
Determine if the given DORADE sweepfile contains little - endian data ( in violation of the DORADE definition ... ) .