cdm/src/main/java/ucar/nc2/iosp/dmsp/DMSPHeader.java
boolean isValidFile( ucar.unidata.io.RandomAccessFile raFile )
  {
    // @todo This method should not be called if read() has or will be called on this instance.
    this.raFile = raFile;
    try
    {
      this.actualSize = raFile.length();
    }
    catch ( IOException e )
    {
      return( false );
    }
    try
    {
      this.readHeaderFromFile( raFile );

      this.handleFileInformation();
      this.handleProcessingInformation();
      this.handleSatelliteInformation();
      this.handleSensorInformation();
    }
    catch ( IOException e )
    {
      return( false );
    }
    return( true );
  }
boolean isValidFile( ucar.unidata.io.RandomAccessFile raFile )
  {
    // @todo This method should not be called if read() has or will be called on this instance.
    this.raFile = raFile;
    try
    {
      this.actualSize = raFile.length();
    }
    catch ( IOException e )
    {
      return( false );
    }
    try
    {
      this.readHeaderFromFile( raFile );

      this.handleFileInformation();
      this.handleProcessingInformation();
      this.handleSatelliteInformation();
      this.handleSensorInformation();
    }
    catch ( IOException e )
    {
      return( false );
    }
    return( true );
  }
boolean isValidFile ( ucar . unidata . io . RandomAccessFile raFile ) { // @todo This method should not be called if read() has or will be called on this instance. this . raFile = raFile ; try { this . actualSize = raFile . length ( ) ; } catch ( IOException e ) { return ( false ) ; } try { this . readHeaderFromFile ( raFile ) ; this . handleFileInformation ( ) ; this . handleProcessingInformation ( ) ; this . handleSatelliteInformation ( ) ; this . handleSensorInformation ( ) ; } catch ( IOException e ) { return ( false ) ; } return ( true ) ; }
Check basic DMSP file validity of given random access file.
Check basic DMSP file validity of given random access file .