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." ) ; }
Passing the object after defining the type of data that will be written