Class InternalByteArrayEntity

  • All Implemented Interfaces:
    java.lang.Cloneable, org.apache.http.HttpEntity

    class InternalByteArrayEntity
    extends org.apache.http.entity.AbstractHttpEntity
    implements java.lang.Cloneable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] b  
      private int len  
      private int off  
      • Fields inherited from class org.apache.http.entity.AbstractHttpEntity

        chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream getContent()  
      long getContentLength()  
      boolean isRepeatable()  
      boolean isStreaming()  
      void writeTo​(java.io.OutputStream outStream)  
      • Methods inherited from class org.apache.http.entity.AbstractHttpEntity

        consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
      • Methods inherited from class java.lang.Object

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

      • b

        private final byte[] b
      • off

        private final int off
      • len

        private final int len
    • Constructor Detail

      • InternalByteArrayEntity

        public InternalByteArrayEntity​(byte[] b,
                                       org.apache.http.entity.ContentType contentType)
      • InternalByteArrayEntity

        public InternalByteArrayEntity​(byte[] b,
                                       int off,
                                       int len,
                                       org.apache.http.entity.ContentType contentType)
      • InternalByteArrayEntity

        public InternalByteArrayEntity​(byte[] b)
      • InternalByteArrayEntity

        public InternalByteArrayEntity​(byte[] b,
                                       int off,
                                       int len)
    • Method Detail

      • isRepeatable

        public boolean isRepeatable()
        Specified by:
        isRepeatable in interface org.apache.http.HttpEntity
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface org.apache.http.HttpEntity
      • getContent

        public java.io.InputStream getContent()
        Specified by:
        getContent in interface org.apache.http.HttpEntity
      • writeTo

        public void writeTo​(java.io.OutputStream outStream)
                     throws java.io.IOException
        Specified by:
        writeTo in interface org.apache.http.HttpEntity
        Throws:
        java.io.IOException
      • isStreaming

        public boolean isStreaming()
        Specified by:
        isStreaming in interface org.apache.http.HttpEntity