Class ContentChunk


  • public class ContentChunk
    extends java.lang.Object
    A chunk of content, made of a ByteBuffer and a Callback.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.nio.ByteBuffer buffer  
      org.eclipse.jetty.util.Callback callback  
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentChunk​(java.nio.ByteBuffer buffer)  
      ContentChunk​(java.nio.ByteBuffer buffer, org.eclipse.jetty.util.Callback callback)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • buffer

        public final java.nio.ByteBuffer buffer
      • callback

        public final org.eclipse.jetty.util.Callback callback
    • Constructor Detail

      • ContentChunk

        public ContentChunk​(java.nio.ByteBuffer buffer)
      • ContentChunk

        public ContentChunk​(java.nio.ByteBuffer buffer,
                            org.eclipse.jetty.util.Callback callback)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object