added main method to text-decode an rd5
This commit is contained in:
parent
2121a8d57f
commit
8f02ee8351
2 changed files with 21 additions and 4 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue