code: private void getMapRow( int currentrow, ByteBuffer rowdata, boolean iscompressed ) throws IOException, DataFormatException {
          // if (logger.isDebugEnabled())
          // {
          // logger.debug("ACCESSING THE FILE at row: " + currentrow +
          // ", rasterMapType = " + rasterMapType +
          // ", numberOfBytesPerValue = " + numberOfBytesPerValue +
          // ", iscompressed = " + iscompressed);
          // }
  
          if (iscompressed) {
              /* Compressed maps */
              if (rasterMapType == -2) {
                  /* Compressed double map */
                  readCompressedFPRowByNumber(rowdata, currentrow, addressesofrows, cellFile, numberOfBytesPerValue);
              } else if (rasterMapType == -1) {
                  /* Compressed floating point map */
                  readCompressedFPRowByNumber(rowdata, currentrow, addressesofrows, cellFile, numberOfBytesPerValue);
              } else if (rasterMapType > 0) {
                  /* Compressed integer map */
                  readCompressedIntegerRowByNumber(rowdata, currentrow, addressesofrows, cellFile);
              } else {
                  // if (logger.isDebugEnabled())
                  // logger.error("format not double nor float");
              }
          } else {
              if (rasterMapType < 0) {
                  /* Uncompressed floating point map */
                  readUncompressedFPRowByNumber(rowdata, currentrow, cellFile, numberOfBytesPerValue);
              } else if (rasterMapType > 0) {
                  /* Uncompressed integer map */
                  readUncompressedIntegerRowByNumber(rowdata, currentrow, cellFile);
              } else {
                  // if (logger.isDebugEnabled())
                  // logger.error("Unknown case, iscompressed=" + iscompressed
                  // + ", compressed=" + compressed + ", rasterMapType="
                  // + rasterMapType);
              }
          }
          return;
      }
docs: read a row of the map from the active region
  
  @param currentrow
  @param iscompressed
  @return
  @throws IOException
  @throws DataFormatException