public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler, false); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler, false); } }
/** * Method that can be used to ensure that a "safe" decoder instance is loaded. * Safe here means that it should work on any and all Java platforms. */ public static ChunkDecoder safeInstance() { // this will always succeed loading; no need to use dynamic class loading or instantiation return new VanillaChunkDecoder(); } }
/** * Factory method for constructing encoder that is always passed buffer * externally, so that it will not (nor need) allocate encoding buffer. */ public static ChunkEncoder safeNonAllocatingInstance(int totalLength, BufferRecycler bufferRecycler) { return VanillaChunkEncoder.nonAllocatingEncoder(totalLength, bufferRecycler); } }
/** * Method that can be used to ensure that a "safe" compressor instance is loaded. * Safe here means that it should work on any and all Java platforms. * * @param totalLength Expected total length of content to compress; only matters * for content that is smaller than maximum chunk size (64k), to optimize * encoding hash tables * @param bufferRecycler The BufferRecycler instance */ public static ChunkEncoder safeInstance(int totalLength, BufferRecycler bufferRecycler) { return new VanillaChunkEncoder(totalLength, bufferRecycler); }
public static UnsafeChunkEncoder createEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength); } return new UnsafeChunkEncoderBE(totalLength); }
/** * Factory method for constructing encoder that is always passed buffer * externally, so that it will not (nor need) allocate encoding buffer. *<p>Uses a ThreadLocal soft-referenced BufferRecycler instance. */ public static ChunkEncoder safeNonAllocatingInstance(int totalLength) { return VanillaChunkEncoder.nonAllocatingEncoder(totalLength); }
/** * Method that can be used to ensure that a "safe" decoder instance is loaded. * Safe here means that it should work on any and all Java platforms. */ public static ChunkDecoder safeInstance() { // this will always succeed loading; no need to use dynamic class loading or instantiation return new VanillaChunkDecoder(); } }
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, false); } return new UnsafeChunkEncoderBE(totalLength, false); }
/** * Factory method for constructing encoder that is always passed buffer * externally, so that it will not (nor need) allocate encoding buffer. *<p>Uses a ThreadLocal soft-referenced BufferRecycler instance. */ public static ChunkEncoder safeNonAllocatingInstance(int totalLength) { return VanillaChunkEncoder.nonAllocatingEncoder(totalLength); }
/** * Method that can be used to ensure that a "safe" decoder instance is loaded. * Safe here means that it should work on any and all Java platforms. */ public static ChunkDecoder safeInstance() { // this will always succeed loading; no need to use dynamic class loading or instantiation return new VanillaChunkDecoder(); } }
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler, false); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler, false); } }
/** * Factory method for constructing encoder that is always passed buffer * externally, so that it will not (nor need) allocate encoding buffer. */ public static ChunkEncoder safeNonAllocatingInstance(int totalLength, BufferRecycler bufferRecycler) { return VanillaChunkEncoder.nonAllocatingEncoder(totalLength, bufferRecycler); } }
public static UnsafeChunkEncoder createEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength); } return new UnsafeChunkEncoderBE(totalLength); }
public static UnsafeChunkEncoder createEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength); } return new UnsafeChunkEncoderBE(totalLength); }
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, false); } return new UnsafeChunkEncoderBE(totalLength, false); }
public static UnsafeChunkEncoder createEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler); }
public static UnsafeChunkEncoder createEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler); }
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, false); } return new UnsafeChunkEncoderBE(totalLength, false); }
public static UnsafeChunkEncoder createEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler); }
public static UnsafeChunkEncoder createNonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { if (LITTLE_ENDIAN) { return new UnsafeChunkEncoderLE(totalLength, bufferRecycler, false); } return new UnsafeChunkEncoderBE(totalLength, bufferRecycler, false); } }