Class InputStreamContainer

java.lang.Object
org.opensearch.common.io.InputStreamContainer

public class InputStreamContainer extends Object
Model composed of an input stream and the total content length of the stream
Opensearch.internal:
  • Constructor Details

    • InputStreamContainer

      public InputStreamContainer(InputStream inputStream, long contentLength, long offset)
      Construct a new stream object
      Parameters:
      inputStream - The input stream that is to be encapsulated
      contentLength - The total content length that is to be read from the stream
  • Method Details

    • getInputStream

      public InputStream getInputStream()
      Returns:
      The input stream this object is reading from
    • getContentLength

      public long getContentLength()
      Returns:
      The total length of the content that has to be read from this stream
    • getOffset

      public long getOffset()
      Returns:
      offset of the source content.