Package org.opensearch.common.io
Class InputStreamContainer
java.lang.Object
org.opensearch.common.io.InputStreamContainer
Model composed of an input stream and the total content length of the stream
- Opensearch.internal:
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamContainer(InputStream inputStream, long contentLength, long offset) Construct a new stream object -
Method Summary
Modifier and TypeMethodDescriptionlonglong
-
Constructor Details
-
InputStreamContainer
Construct a new stream object- Parameters:
inputStream- The input stream that is to be encapsulatedcontentLength- The total content length that is to be read from the stream
-
-
Method Details
-
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.
-