Class BLStreamEntity
java.lang.Object
org.apache.hc.core5.http.io.entity.AbstractHttpEntity
com.io7m.brooklime.vanilla.internal.BLStreamEntity
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.hc.core5.http.EntityDetails,org.apache.hc.core5.http.HttpEntity
public final class BLStreamEntity
extends org.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
Constructor Summary
Constructors Constructor Description BLStreamEntity(BLProgressCounter inCounter, java.nio.file.Path inFile, org.apache.hc.core5.http.ContentType contentType) -
Method Summary
Modifier and Type Method Description voidclose()java.io.InputStreamgetContent()longgetContentLength()booleanisRepeatable()booleanisStreaming()voidwriteTo(java.io.OutputStream outStream)Methods inherited from class org.apache.hc.core5.http.io.entity.AbstractHttpEntity
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, toString, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
BLStreamEntity
public BLStreamEntity(BLProgressCounter inCounter, java.nio.file.Path inFile, org.apache.hc.core5.http.ContentType contentType)
-
-
Method Details
-
isRepeatable
public boolean isRepeatable()- Specified by:
isRepeatablein interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
isRepeatablein classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity
-
getContentLength
public long getContentLength() -
getContent
public java.io.InputStream getContent() throws java.io.IOException- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.io.OutputStream outStream) throws java.io.IOException- Specified by:
writeToin interfaceorg.apache.hc.core5.http.HttpEntity- Overrides:
writeToin classorg.apache.hc.core5.http.io.entity.AbstractHttpEntity- Throws:
java.io.IOException
-
isStreaming
public boolean isStreaming() -
close
public void close() throws java.io.IOException- Throws:
java.io.IOException
-