Class ByteAccumulator

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    @Deprecated
    public class ByteAccumulator
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Deprecated.
    use ByteBufferAccumulator instead.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.jetty.io.ByteBufferAccumulator accumulator
      Deprecated.
       
      private int length
      Deprecated.
       
      private int maxSize
      Deprecated.
       
      private static int MIN_SPACE
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteAccumulator​(int maxOverallBufferSize)
      Deprecated.
       
      ByteAccumulator​(int maxOverallBufferSize, org.eclipse.jetty.io.ByteBufferPool byteBufferPool)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void addLength​(int read)
      Deprecated.
       
      void close()
      Deprecated.
       
      void copyChunk​(byte[] buf, int offset, int length)
      Deprecated.
       
      void copyChunk​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      java.nio.ByteBuffer ensureBuffer​(int minAllocationSize)
      Deprecated.
       
      int getLength()
      Deprecated.
       
      void transferTo​(java.nio.ByteBuffer buffer)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • accumulator

        private final org.eclipse.jetty.io.ByteBufferAccumulator accumulator
        Deprecated.
      • maxSize

        private final int maxSize
        Deprecated.
      • length

        private int length
        Deprecated.
    • Constructor Detail

      • ByteAccumulator

        public ByteAccumulator​(int maxOverallBufferSize)
        Deprecated.
      • ByteAccumulator

        public ByteAccumulator​(int maxOverallBufferSize,
                               org.eclipse.jetty.io.ByteBufferPool byteBufferPool)
        Deprecated.
    • Method Detail

      • getLength

        public int getLength()
        Deprecated.
      • ensureBuffer

        public java.nio.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​(java.nio.ByteBuffer buffer)
        Deprecated.
      • transferTo

        public void transferTo​(java.nio.ByteBuffer buffer)
        Deprecated.
      • close

        public void close()
        Deprecated.
        Specified by:
        close in interface java.lang.AutoCloseable