spec.benchmarks.crypto
Class Util
java.lang.Object
spec.benchmarks.crypto.Util
public class Util
- extends java.lang.Object
Constructor Summary |
Util()
|
Method Summary |
static boolean |
check(byte[] ba1,
byte[] ba2)
|
static int |
checkSum(byte[] arr)
|
static void |
createRandomTestData(java.lang.String fileName,
int length)
|
static byte[] |
getTestData(java.lang.String name)
Will collect the test data from FileCache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TEST_DATA_BASE
public static final java.lang.String TEST_DATA_BASE
TEST_DATA_1
public static final java.lang.String TEST_DATA_1
TEST_DATA_2
public static final java.lang.String TEST_DATA_2
TEST_DATA_3
public static final java.lang.String TEST_DATA_3
TEST_DATA_4
public static final java.lang.String TEST_DATA_4
TEST_DATA_5
public static final java.lang.String TEST_DATA_5
TEST_DATA_6
public static final java.lang.String TEST_DATA_6
Util
public Util()
getTestData
public static final byte[] getTestData(java.lang.String name)
- Will collect the test data from FileCache.
- Parameters:
name
- The file to collect.
- Returns:
- An byte buffer with the test data.
createRandomTestData
public static void createRandomTestData(java.lang.String fileName,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
checkSum
public static final int checkSum(byte[] arr)
check
public static final boolean check(byte[] ba1,
byte[] ba2)