private byte[] getGiniLine(int nx, int ny, long doff, int lineNumber, int len, int stride) throws IOException {

    byte[] data = new byte[len];

    /*
    ** checking image file and set location of first line in file
    */
    raf.seek(doff);

    if (lineNumber >= ny)
      throw new IOException("Try to access the file at line number= " + lineNumber + " larger then last line number = " + ny);

    /*
    ** Read in the requested line
    */

    int offset = lineNumber * nx + (int) doff;

    //myRaf.seek ( offset );
    for (int i = 0; i < len; i++) {
      raf.seek(offset);
      data[i] = raf.readByte();
      offset = offset + stride;
      //myRaf.seek(offset);
    }
    //myRaf.read( data, 0, len);

    return data;

  }
private byte[] getGiniLine(int nx, int ny, long doff, int lineNumber, int len, int stride) throws IOException {

    byte[] data = new byte[len];

    
    raf.seek(doff);

    if (lineNumber >= ny)
      throw new IOException("Try to access the file at line number= " + lineNumber + " larger then last line number = " + ny);

    

    int offset = lineNumber * nx + (int) doff;

    
    for (int i = 0; i < len; i++) {
      raf.seek(offset);
      data[i] = raf.readByte();
      offset = offset + stride;
      
    }
    

    return data;

  }
private byte [ ] getGiniLine ( int nx , int ny , long doff , int lineNumber , int len , int stride ) throws IOException { byte [ ] data = new byte [ len ] ; /*
    ** checking image file and set location of first line in file
    */ raf . seek ( doff ) ; if ( lineNumber >= ny ) throw new IOException ( "Try to access the file at line number= " + lineNumber + " larger then last line number = " + ny ) ; /*
    ** Read in the requested line
    */ int offset = lineNumber * nx + ( int ) doff ; //myRaf.seek ( offset ); for ( int i = 0 ; i < len ; i ++ ) { raf . seek ( offset ) ; data [ i ] = raf . readByte ( ) ; offset = offset + stride ; //myRaf.seek(offset); } //myRaf.read( data, 0, len); return data ; }
/*
* Name:       GetGiniLine
*
* Purpose:    Extract a line of data from a GINI image
*
* Parameters:
*             buf     - buffer containing image data
*
* Returns:
*             SUCCESS == 1
*             FAILURE == 0
*
*
/ * * Name : GetGiniLine * * Purpose : Extract a line of data from a GINI image * * Parameters : * buf - buffer containing image data * * Returns : * SUCCESS == 1 * FAILURE == 0 * *