public class GoogleCloudStorageWriteChannel extends AbstractGoogleAsyncWriteChannel<com.google.api.services.storage.Storage.Objects.Insert,com.google.api.services.storage.model.StorageObject>
GCS_UPLOAD_GRANULARITY, UPLOAD_CHUNK_SIZE_DEFAULT, UPLOAD_PIPE_BUFFER_SIZE_DEFAULT| Constructor and Description |
|---|
GoogleCloudStorageWriteChannel(ExecutorService threadPool,
com.google.api.services.storage.Storage gcs,
ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper,
String bucketName,
String objectName,
AsyncWriteChannelOptions options,
ObjectWriteConditions writeConditions,
Map<String,String> objectMetadata)
Constructs an instance of GoogleCloudStorageWriteChannel.
|
GoogleCloudStorageWriteChannel(ExecutorService threadPool,
com.google.api.services.storage.Storage gcs,
ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper,
String bucketName,
String objectName,
AsyncWriteChannelOptions options,
ObjectWriteConditions writeConditions,
Map<String,String> objectMetadata,
String contentType)
Constructs an instance of GoogleCloudStorageWriteChannel.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.services.storage.Storage.Objects.Insert |
createRequest(com.google.api.client.http.InputStreamContent inputStream) |
close, createResponseFromException, enableFileSizeLimit250Gb, handleResponse, initialize, isDirectUploadEnabled, isOpen, setClientRequestHelper, setContentType, setDirectUploadEnabled, setUploadBufferSize, writepublic GoogleCloudStorageWriteChannel(ExecutorService threadPool, com.google.api.services.storage.Storage gcs, ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper, String bucketName, String objectName, AsyncWriteChannelOptions options, ObjectWriteConditions writeConditions, Map<String,String> objectMetadata)
threadPool - thread pool to use for running the upload operationgcs - storage object instancerequestHelper - a ClientRequestHelper to set extra headersbucketName - name of the bucket to create object inobjectName - name of the object to createobjectMetadata - metadata to apply to the newly created objectpublic GoogleCloudStorageWriteChannel(ExecutorService threadPool, com.google.api.services.storage.Storage gcs, ClientRequestHelper<com.google.api.services.storage.model.StorageObject> requestHelper, String bucketName, String objectName, AsyncWriteChannelOptions options, ObjectWriteConditions writeConditions, Map<String,String> objectMetadata, String contentType)
threadPool - thread pool to use for running the upload operationgcs - storage object instancerequestHelper - a ClientRequestHelper to set extra headersbucketName - name of the bucket to create object inobjectName - name of the object to createobjectMetadata - metadata to apply to the newly created objectcontentType - content typepublic com.google.api.services.storage.Storage.Objects.Insert createRequest(com.google.api.client.http.InputStreamContent inputStream)
throws IOException
createRequest in class AbstractGoogleAsyncWriteChannel<com.google.api.services.storage.Storage.Objects.Insert,com.google.api.services.storage.model.StorageObject>IOExceptionCopyright © 2016. All rights reserved.