Package com.google.cloud.storage.contrib.nio (0.127.25)

GitHub Repository

Classes

Class Description
com.google.cloud.storage.contrib.nio.CloudStorageConfiguration Configuration for CloudStorageFileSystem instances.
com.google.cloud.storage.contrib.nio.CloudStorageConfiguration.Builder Builder for CloudStorageConfiguration.
com.google.cloud.storage.contrib.nio.CloudStorageFileAttributeView Metadata view for a Google Cloud Storage object.
com.google.cloud.storage.contrib.nio.CloudStorageFileSystem Google Cloud Storage FileSystem implementation. See Also: Concepts and Terminology, Bucket and Object Naming Guidelines
com.google.cloud.storage.contrib.nio.CloudStorageFileSystemProvider Google Cloud Storage FileSystemProvider implementation.

Note: This class should never be used directly. This class is instantiated by the service loader and called through a standardized API, e.g. java.nio.file.Files. However

com.google.cloud.storage.contrib.nio.CloudStorageOptions Helper class for specifying options when opening and copying Cloud Storage files.
com.google.cloud.storage.contrib.nio.CloudStoragePath A Google Cloud Storage specific implementation of the java.nio.file.Path interface. An instance of this class locates an object or a "pseudo-directory" in GCS. This implementation allows one to use Java's standard file system API to deal with remote objects as if they are local files.
com.google.cloud.storage.contrib.nio.CloudStorageRetryHandler Simple counter class to keep track of retry and reopen attempts when StorageExceptions are encountered. Handles sleeping between retry/reopen attempts, as well as throwing an exception when all retries/reopens are exhausted.
com.google.cloud.storage.contrib.nio.SeekableByteChannelPrefetcher SeekableByteChannelPrefetcher wraps an existing SeekableByteChannel to add prefetching. The prefetching is done on a different thread, so you can write simple code that repeatedly calls read() to get data, processes it, and then calls read again -- and yet this simple code overlaps computation and communication for you. (Of course this is only worthwhile if the underlying
com.google.cloud.storage.contrib.nio.SeekableByteChannelPrefetcher.Statistics

Interfaces

Interface Description
com.google.cloud.storage.contrib.nio.CloudStorageFileAttributes Interface for attributes on a Cloud Storage file or pseudo-directory.
com.google.cloud.storage.contrib.nio.CloudStorageOption Main interface for file operation option classes related to Google Cloud Storage.
com.google.cloud.storage.contrib.nio.CloudStorageOption.Copy Interface for Google Cloud Storage options that can be specified when copying files.
com.google.cloud.storage.contrib.nio.CloudStorageOption.Open Interface for Google Cloud Storage options that can be specified when opening files.
com.google.cloud.storage.contrib.nio.CloudStorageOption.OpenCopy Interface for Google Cloud Storage options that can be specified when opening or copying files.

Exceptions

Exception Description
com.google.cloud.storage.contrib.nio.CloudStorageObjectImmutableException Exception reminding user that Cloud Storage objects can't be mutated.
com.google.cloud.storage.contrib.nio.CloudStoragePseudoDirectoryException Exception thrown when erroneously trying to operate on a path with a trailing slash.