|
|
|
@ -190,10 +190,10 @@ public final class LZ4Factory {
|
|
|
|
|
|
|
|
|
|
private LZ4Factory(String impl) throws ClassNotFoundException, NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException, NoSuchMethodException, InstantiationException, InvocationTargetException { |
|
|
|
|
this.impl = impl; |
|
|
|
|
fastCompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "Compressor"); |
|
|
|
|
highCompressor = classInstance("net.jpountz.lz4.LZ4HC" + impl + "Compressor"); |
|
|
|
|
fastDecompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "FastDecompressor"); |
|
|
|
|
safeDecompressor = classInstance("net.jpountz.lz4.LZ4" + impl + "SafeDecompressor"); |
|
|
|
|
fastCompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "Compressor"); |
|
|
|
|
highCompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4HC" + impl + "Compressor"); |
|
|
|
|
fastDecompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "FastDecompressor"); |
|
|
|
|
safeDecompressor = classInstance("com.fr.third.net.jpountz.lz4.LZ4" + impl + "SafeDecompressor"); |
|
|
|
|
Constructor<? extends LZ4Compressor> highConstructor = highCompressor.getClass().getDeclaredConstructor(int.class); |
|
|
|
|
highCompressors[DEFAULT_COMPRESSION_LEVEL] = highCompressor; |
|
|
|
|
for(int level = 1; level <= MAX_COMPRESSION_LEVEL; level++) { |
|
|
|
|