Class ContentEntity

java.lang.Object
org.apache.http.entity.AbstractHttpEntity
com.google.api.client.http.apache.ContentEntity
All Implemented Interfaces:
org.apache.http.HttpEntity

final class ContentEntity extends org.apache.http.entity.AbstractHttpEntity
  • Field Details

    • contentLength

      private final long contentLength
      Content length or less than zero if not known.
    • streamingContent

      private final StreamingContent streamingContent
      Streaming content.
  • Constructor Details

    • ContentEntity

      ContentEntity(long contentLength, StreamingContent streamingContent)
      Parameters:
      contentLength - content length or less than zero if not known
      streamingContent - streaming content
  • Method Details

    • getContent

      public InputStream getContent()
    • getContentLength

      public long getContentLength()
    • isRepeatable

      public boolean isRepeatable()
    • isStreaming

      public boolean isStreaming()
    • writeTo

      public void writeTo(OutputStream out) throws IOException
      Throws:
      IOException