code: public boolean compressAndWriteObj( RandomAccessFile theCreatedFile, RandomAccessFile theCreatedNullFile, Object dataObject )
              throws RasterWritingFailureException {
          if (dataObject instanceof double[][]) {
              compressAndWrite(theCreatedFile, theCreatedNullFile, (double[][]) dataObject);
          } else {
              throw new RasterWritingFailureException("Raster type not supported.");
          }
docs: Passing the object after defining the type of data that will be written
  
  @param theCreatedFile
  @param theCreatedNullFile
  @param dataObject
  @return
  @throws RasterWritingFailureException