public class SteganographyActivity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
MIN_DICT_SIZE |
private static int |
NUMBER_RANDOM_ELEMENTS |
Constructor and Description |
---|
SteganographyActivity() |
Modifier and Type | Method and Description |
---|---|
boolean |
are_same(byte[] a,
byte[] b)
are_same A function which checks if two array of bytes are identical
|
static java.lang.String |
fixedWidthHex(int value,
int minWidth)
Simple function which returns a hexadecimal string with a minimum fixed
width given a value to convert to hex.
|
static void |
main(java.lang.String[] args) |
static void |
randomKeysSortTest(java.text.CollationKey[] unsortedKeys)
Function which tests the FastQuickSort implementation by verifying that
it properly sorts a collection of strings stored as CollationKeys
|
static void |
randomNumSortTest()
Function which tests the FastQuickSort implementation by verifying that
it properly sorts a collection of random numbers
|
static void |
randomSequenceTest(byte[] shared_seed)
Simple function to test that the random number generators generate the
same sequence of values give a shared seed from the SDF
|
static void |
randomStringSortTest(java.lang.String[] unsortedStr,
java.text.Collator collator)
Function which tests the FastQuickSort implementation by verifying that
it properly sorts a collection of strings
|
static java.lang.String[] |
readLines(java.lang.String filename)
Function which quickly reads the lines from the file into an
array of strings
|
private static final int NUMBER_RANDOM_ELEMENTS
private static final int MIN_DICT_SIZE
public boolean are_same(byte[] a, byte[] b)
a
- first array of bytesb
- first array of bytespublic static java.lang.String[] readLines(java.lang.String filename) throws java.io.IOException
filename
- The path and name of the file to openjava.io.IOException
public static java.lang.String fixedWidthHex(int value, int minWidth)
public static void randomSequenceTest(byte[] shared_seed)
public static void randomNumSortTest() throws java.lang.Exception
java.lang.Exception
public static void randomStringSortTest(java.lang.String[] unsortedStr, java.text.Collator collator) throws java.lang.Exception
java.lang.Exception
public static void randomKeysSortTest(java.text.CollationKey[] unsortedKeys) throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.Exception