| java.lang.Object tests.CreateTestJarEntries
CreateTestJarEntries | public class CreateTestJarEntries (Code) | | This class is used to generate JAR file entries for unit test cases.
We add JAR entries of very long names into tests.jar
|
multiplier | static int multiplier(Code) | | |
addIncrementalDecomressEntries | static void addIncrementalDecomressEntries(ZipOutputStream zout) throws Throwable(Code) | | Create large JAR entries (>1Mb) which cannot be decompressed at once.
This tests Incremental Decompressing feature.
|
addReadCompletely1Entry | static void addReadCompletely1Entry(ZipOutputStream zout) throws Throwable(Code) | | Create a JAR entry with non-compressible bytes (random data)
intermixed with compressible bytes (simple sequence of numbers)
as a stress test case for the JAR decoder, especially
the BTYPE_NO_COMPRESSION case.
|
addTestEntry | static void addTestEntry(ZipOutputStream zout, int numLevels, String name) throws Throwable(Code) | | Create a JAR entry with a very long name. The JAR entry contains
with 100 bytes of zeros.
|
local_rand | static int local_rand()(Code) | | |
usage | static void usage()(Code) | | |
|
|