question: protected void loadBuffer ( ) { int resIdx = minuteSpacing / 5 ; if ( resIdx < 0 ) resIdx = 0 ; else if ( resIdx > 3 ) resIdx = 3 ; String fileName = path + etopoFileNames [ resIdx ] ; dataBuffer = null ; try { BinaryBufferedFile binFile = new BinaryBufferedFile ( fileName ) ; binFile . byteOrder ( true ) ; bufferWidth = etopoWidths [ resIdx ] ; bufferHeight = etopoHeights [ resIdx ] ; int spacer = 1 ; switch ( minuteSpacing ) { case ( 2 ) : spacer = 1 + this . spacer ; break ; case ( 5 ) : spacer = 0 + this . spacer ; break ; default : spacer = 1 + this . spacer ; } dataBuffer = new short [ ( bufferWidth + spacer ) * bufferHeight ] ; for ( int i = 0 ; i < bufferWidth * bufferHeight ; i ++ ) dataBuffer [ i ] = binFile . readShort ( ) ; binFile . close ( ) ; bufferWidth += spacer ; } catch ( FileNotFoundException e ) { Debug . error ( "ETOPOLayer loadBuffer(): file " + fileName + " not found" ) ; } catch ( IOException e ) { Debug . error ( "ETOPOLayer loadBuffer(): File IO Error!\n" + e . toString ( ) ) ; } catch ( FormatException e ) { Debug . error ( "ETOPOLayer loadBuffer(): Format exception!\n" + e . toString ( ) ) ; } }
target:  Loads the database from the appropriate file based on the current resolution. The data files are in INTEL format (must call BinaryBufferedFile.byteOrder(true)).