/** * 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); }
/** * 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); } }
/** * 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); }
/** * 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); } }
/** * 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); } }
/** * 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); }