added main method to text-decode an rd5

This commit is contained in:
Arndt Brenschede 2017-04-08 12:19:41 +02:00
parent 2121a8d57f
commit 8f02ee8351
2 changed files with 21 additions and 4 deletions

View file

@ -10,6 +10,7 @@ import java.io.IOException;
import java.io.RandomAccessFile;
import btools.codec.DataBuffers;
import btools.codec.MicroCache;
import btools.util.ByteDataReader;
import btools.util.Crc32;
@ -26,6 +27,20 @@ final public class PhysicalFile
public int divisor = 80;
public static void main( String[] args )
{
MicroCache.debug = true;
String message = checkFileIntegrity( new File( args[0] ) );
if ( message != null )
{
System.out.println( "************************************" );
System.out.println( message );
System.out.println( "************************************" );
}
}
/**
* Checks the integrity of the file using the build-in checksums
*
@ -47,7 +62,7 @@ final public class PhysicalFile
if ( osmf.hasData() )
for ( int lonIdx = 0; lonIdx < div; lonIdx++ )
for ( int latIdx = 0; latIdx < div; latIdx++ )
osmf.createMicroCache( lonDegree * div + lonIdx, latDegree * div + latIdx, dataBuffers, null, null, false );
osmf.createMicroCache( lonDegree * div + lonIdx, latDegree * div + latIdx, dataBuffers, null, null, MicroCache.debug );
}
}
}