public class ChannelService extends Object
| Constructor and Description |
|---|
ChannelService(com.google.cloud.storage.Storage storageInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeReadChannel(com.google.cloud.ReadChannel readChannel) |
void |
closeWriteChannel(com.google.cloud.WriteChannel writeChannel) |
com.google.cloud.ReadChannel |
getReadChannel(com.google.cloud.storage.BlobId blobId,
com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption) |
InputStream |
read(com.google.cloud.storage.BlobId blobId,
com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption) |
InputStream |
read(String bucket,
String blob,
com.google.cloud.storage.Storage.BlobSourceOption... options) |
InputStream |
readDataFromReadChannel(com.google.cloud.ReadChannel readChannel) |
com.google.cloud.ReadChannel |
restoreReadChannel(com.google.cloud.RestorableState<com.google.cloud.ReadChannel> restorableState) |
com.google.cloud.WriteChannel |
restoreWriteChannel(com.google.cloud.RestorableState<com.google.cloud.WriteChannel> restorableState) |
com.google.cloud.RestorableState<com.google.cloud.ReadChannel> |
startReadRestorableState(com.google.cloud.ReadChannel readChannel) |
com.google.cloud.RestorableState<com.google.cloud.WriteChannel> |
startWriteRestorable(com.google.cloud.WriteChannel writeChannel) |
com.google.cloud.WriteChannel |
writeChannel(com.google.cloud.storage.BlobInfo blobInfo,
com.google.cloud.storage.Storage.BlobWriteOption... options) |
int |
writeToChannel(com.google.cloud.WriteChannel writeChannel,
ByteBuffer data) |
public ChannelService(com.google.cloud.storage.Storage storageInstance)
public InputStream read(String bucket, String blob, com.google.cloud.storage.Storage.BlobSourceOption... options) throws GoogleStorageApiException
GoogleStorageApiExceptionpublic InputStream read(com.google.cloud.storage.BlobId blobId, com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption) throws GoogleStorageApiException
GoogleStorageApiExceptionpublic com.google.cloud.ReadChannel getReadChannel(com.google.cloud.storage.BlobId blobId,
com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic com.google.cloud.RestorableState<com.google.cloud.ReadChannel> startReadRestorableState(com.google.cloud.ReadChannel readChannel)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic InputStream readDataFromReadChannel(com.google.cloud.ReadChannel readChannel) throws GoogleStorageApiException
GoogleStorageApiExceptionpublic void closeReadChannel(com.google.cloud.ReadChannel readChannel)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic com.google.cloud.ReadChannel restoreReadChannel(com.google.cloud.RestorableState<com.google.cloud.ReadChannel> restorableState)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic com.google.cloud.WriteChannel writeChannel(com.google.cloud.storage.BlobInfo blobInfo,
com.google.cloud.storage.Storage.BlobWriteOption... options)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic com.google.cloud.RestorableState<com.google.cloud.WriteChannel> startWriteRestorable(com.google.cloud.WriteChannel writeChannel)
throws GoogleStorageApiException
GoogleStorageApiExceptionpublic int writeToChannel(com.google.cloud.WriteChannel writeChannel,
ByteBuffer data)
throws GoogleStorageApiException,
IOException
GoogleStorageApiExceptionIOExceptionpublic void closeWriteChannel(com.google.cloud.WriteChannel writeChannel)
throws GoogleStorageApiException,
IOException
GoogleStorageApiExceptionIOExceptionpublic com.google.cloud.WriteChannel restoreWriteChannel(com.google.cloud.RestorableState<com.google.cloud.WriteChannel> restorableState)
throws GoogleStorageApiException
GoogleStorageApiExceptionCopyright © 2010–2018. All rights reserved.