Class ByteAccumulator
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.extensions.compress.ByteAccumulator
-
- All Implemented Interfaces:
AutoCloseable
@Deprecated public class ByteAccumulator extends Object implements AutoCloseable
Deprecated.useByteBufferAccumulatorinstead.
-
-
Constructor Summary
Constructors Constructor Description ByteAccumulator(int maxOverallBufferSize)Deprecated.ByteAccumulator(int maxOverallBufferSize, ByteBufferPool byteBufferPool)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddLength(int read)Deprecated.voidclose()Deprecated.voidcopyChunk(byte[] buf, int offset, int length)Deprecated.voidcopyChunk(ByteBuffer buffer)Deprecated.ByteBufferensureBuffer(int minAllocationSize)Deprecated.intgetLength()Deprecated.voidtransferTo(ByteBuffer buffer)Deprecated.
-
-
-
Constructor Detail
-
ByteAccumulator
public ByteAccumulator(int maxOverallBufferSize)
Deprecated.
-
ByteAccumulator
public ByteAccumulator(int maxOverallBufferSize, ByteBufferPool byteBufferPool)Deprecated.
-
-
Method Detail
-
getLength
public int getLength()
Deprecated.
-
ensureBuffer
public ByteBuffer ensureBuffer(int minAllocationSize)
Deprecated.
-
addLength
public void addLength(int read)
Deprecated.
-
copyChunk
public void copyChunk(byte[] buf, int offset, int length)Deprecated.
-
copyChunk
public void copyChunk(ByteBuffer buffer)
Deprecated.
-
transferTo
public void transferTo(ByteBuffer buffer)
Deprecated.
-
close
public void close()
Deprecated.- Specified by:
closein interfaceAutoCloseable
-
-