public class InMemoryObjectReadChannel extends GoogleCloudStorageReadChannel
contentChannelPosition, currentPosition, DEFAULT_BACKOFF_INITIAL_INTERVAL_MILLIS, DEFAULT_BACKOFF_MAX_ELAPSED_TIME_MILLIS, DEFAULT_BACKOFF_MAX_INTERVAL_MILLIS, DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_BACKOFF_RANDOMIZATION_FACTOR, metadataInitialized| Constructor and Description |
|---|
InMemoryObjectReadChannel(byte[] content)
Creates a new instance of InMemoryObjectReadChannel.
|
InMemoryObjectReadChannel(byte[] content,
GoogleCloudStorageReadOptions readOptions)
Creates a new instance of InMemoryObjectReadChannel with
readOptions plumbed into the
base class. |
| Modifier and Type | Method and Description |
|---|---|
protected java.io.InputStream |
openStream(long bytesToRead)
Opens the underlying byte array stream, sets its position to currentPosition and sets size to
size of the byte array.
|
close, closeContentChannel, createRequest, getInitialMetadata, initMetadata, initMetadata, isOpen, position, position, read, setMaxRetries, setSize, size, truncate, validatePosition, writepublic InMemoryObjectReadChannel(byte[] content)
throws java.io.IOException
java.io.IOExceptionpublic InMemoryObjectReadChannel(byte[] content,
GoogleCloudStorageReadOptions readOptions)
throws java.io.IOException
readOptions plumbed into the
base class.java.io.IOExceptionprotected java.io.InputStream openStream(long bytesToRead)
throws java.io.IOException
openStream in class GoogleCloudStorageReadChannelbytesToRead - ignored.java.io.IOException - on IO errorCopyright © 2019. All rights reserved.