public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { return new VanillaChunkEncoder(totalLength, bufferRecycler, true); }
/** * 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); }
/** * 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); }
/** * 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. * <p> * Uses a ThreadLocal soft-referenced BufferRecycler instance. * * @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 */ public static ChunkEncoder safeInstance(int totalLength) { return new VanillaChunkEncoder(totalLength); }
/** * 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. * * <p/>Uses a ThreadLocal soft-referenced BufferRecycler instance. * * @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 */ public static ChunkEncoder safeInstance(int totalLength) { return new VanillaChunkEncoder(totalLength); }
/** * 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 VanillaChunkEncoder nonAllocatingEncoder(int totalLength) { return new VanillaChunkEncoder(totalLength, true); }
public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { return new VanillaChunkEncoder(totalLength, bufferRecycler, true); }
/** * 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. * <p> * Uses a ThreadLocal soft-referenced BufferRecycler instance. * * @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 */ public static ChunkEncoder safeInstance(int totalLength) { return new VanillaChunkEncoder(totalLength); }
public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength) { return new VanillaChunkEncoder(totalLength, true); }
public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength) { return new VanillaChunkEncoder(totalLength, true); }
public static VanillaChunkEncoder nonAllocatingEncoder(int totalLength, BufferRecycler bufferRecycler) { return new VanillaChunkEncoder(totalLength, bufferRecycler, true); }