public class GoogleCloudStorageClientImpl extends ForwardingGoogleCloudStorage
| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleCloudStorageClientImpl.Builder |
GoogleCloudStorage.ListPage<T>MAX_COMPOSE_OBJECTS, MAX_RESULTS_UNLIMITED, PATH_DELIMITER| Modifier and Type | Method and Description |
|---|---|
static GoogleCloudStorageClientImpl.Builder |
builder() |
void |
close()
Releases resources used by this instance.
|
WritableByteChannel |
create(StorageResourceId resourceId,
CreateObjectOptions options)
Creates and opens an object for writing.
|
SeekableByteChannel |
open(StorageResourceId resourceId,
GoogleCloudStorageReadOptions readOptions)
Opens an object for reading.
|
void |
renameHnFolder(URI src,
URI dst)
Renames
src to dst using the rename LRO API. |
compose, composeObjects, copy, copy, createBucket, createEmptyObject, createEmptyObject, createEmptyObjects, createEmptyObjects, deleteBuckets, deleteFolders, deleteObjects, getDelegate, getItemInfo, getItemInfos, getOptions, isHnBucket, listBucketInfo, listBucketNames, listFolderInfoForPrefixPage, listObjectInfo, listObjectInfoPage, updateItemsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, createBucket, listObjectInfo, listObjectInfoPage, openpublic WritableByteChannel create(StorageResourceId resourceId, CreateObjectOptions options) throws IOException
GoogleCloudStorageresourceId
contains a known generationId or a generationId of 0, it is used instead of any "overwrite"
settings in the provided CreateObjectOptions (overwrite will only succeed if the
provided generationId matches the existing object, where a generationId of 0 indicates no
existing object expected).create in interface GoogleCloudStoragecreate in class ForwardingGoogleCloudStorageresourceId - identifies a StorageObjectoptions - Options to use when creating the objectIOException - on IO errorpublic SeekableByteChannel open(StorageResourceId resourceId, GoogleCloudStorageReadOptions readOptions) throws IOException
GoogleCloudStorageopen in interface GoogleCloudStorageopen in class ForwardingGoogleCloudStorageresourceId - identifies a StorageObjectreadOptions - Fine-grained options for behaviors of retries, buffering, etc.FileNotFoundException - if the given object does not existIOException - if object exists but cannot be openedpublic void close()
GoogleCloudStorageclose in interface GoogleCloudStorageclose in class ForwardingGoogleCloudStoragepublic void renameHnFolder(URI src, URI dst) throws IOException
GoogleCloudStoragesrc to dst using the rename LRO API. This should be called only on an
Hierarchical namespace enabled bucket.renameHnFolder in interface GoogleCloudStoragerenameHnFolder in class ForwardingGoogleCloudStoragesrc - source pathdst - destination pathIOExceptionpublic static GoogleCloudStorageClientImpl.Builder builder()
Copyright © 2024. All rights reserved.