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
GoogleStorageApiException
public InputStream read(com.google.cloud.storage.BlobId blobId, com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.ReadChannel getReadChannel(com.google.cloud.storage.BlobId blobId, com.google.cloud.storage.Storage.BlobSourceOption... blobSourceOption) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.RestorableState<com.google.cloud.ReadChannel> startReadRestorableState(com.google.cloud.ReadChannel readChannel) throws GoogleStorageApiException
GoogleStorageApiException
public InputStream readDataFromReadChannel(com.google.cloud.ReadChannel readChannel) throws GoogleStorageApiException
GoogleStorageApiException
public void closeReadChannel(com.google.cloud.ReadChannel readChannel) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.ReadChannel restoreReadChannel(com.google.cloud.RestorableState<com.google.cloud.ReadChannel> restorableState) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.WriteChannel writeChannel(com.google.cloud.storage.BlobInfo blobInfo, com.google.cloud.storage.Storage.BlobWriteOption... options) throws GoogleStorageApiException
GoogleStorageApiException
public com.google.cloud.RestorableState<com.google.cloud.WriteChannel> startWriteRestorable(com.google.cloud.WriteChannel writeChannel) throws GoogleStorageApiException
GoogleStorageApiException
public int writeToChannel(com.google.cloud.WriteChannel writeChannel, ByteBuffer data) throws GoogleStorageApiException, IOException
GoogleStorageApiException
IOException
public void closeWriteChannel(com.google.cloud.WriteChannel writeChannel) throws GoogleStorageApiException, IOException
GoogleStorageApiException
IOException
public com.google.cloud.WriteChannel restoreWriteChannel(com.google.cloud.RestorableState<com.google.cloud.WriteChannel> restorableState) throws GoogleStorageApiException
GoogleStorageApiException
Copyright © 2010–2018. All rights reserved.