public class BlobHttpContent
extends java.lang.Object
implements com.google.api.client.http.HttpContent
Blob
-backed HttpContent
.Constructor and Description |
---|
BlobHttpContent(Blob blob,
java.lang.String contentType) |
BlobHttpContent(Blob blob,
java.lang.String contentType,
java.util.function.Consumer<java.lang.Long> writtenByteCountListener)
Create a new BlobHttpClient.
|
Modifier and Type | Method and Description |
---|---|
long |
getLength() |
java.lang.String |
getType() |
boolean |
retrySupported() |
void |
writeTo(java.io.OutputStream outputStream) |
public BlobHttpContent(Blob blob, java.lang.String contentType)
public BlobHttpContent(Blob blob, java.lang.String contentType, java.util.function.Consumer<java.lang.Long> writtenByteCountListener)
blob
- a blob to wrapcontentType
- the http contentType descriptorwrittenByteCountListener
- to listen for written byte feedbackpublic long getLength()
getLength
in interface com.google.api.client.http.HttpContent
public java.lang.String getType()
getType
in interface com.google.api.client.http.HttpContent
public boolean retrySupported()
retrySupported
in interface com.google.api.client.http.HttpContent
public void writeTo(java.io.OutputStream outputStream) throws java.io.IOException
writeTo
in interface com.google.api.client.http.HttpContent
writeTo
in interface com.google.api.client.util.StreamingContent
java.io.IOException