public class InMemoryObjectReadChannel extends GoogleCloudStorageReadChannel
DEFAULT_BACKOFF_INITIAL_INTERVAL_MILLIS, DEFAULT_BACKOFF_MAX_ELAPSED_TIME_MILLIS, DEFAULT_BACKOFF_MAX_INTERVAL_MILLIS, DEFAULT_BACKOFF_MULTIPLIER, DEFAULT_BACKOFF_RANDOMIZATION_FACTOR| Constructor and Description |
|---|
InMemoryObjectReadChannel(byte[] channelContents)
Creates a new instance of InMemoryObjectReadChannel.
|
InMemoryObjectReadChannel(byte[] channelContents,
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 |
openStreamAndSetMetadata(long newPosition)
Opens the underlying byte array stream, sets its position to currentPosition and sets size
to size of the byte array.
|
close, closeReadChannel, createRequest, getEncoding, getMetadata, isOpen, position, position, read, setMaxRetries, setSize, setSize, size, truncate, validatePosition, writepublic InMemoryObjectReadChannel(byte[] channelContents)
throws java.io.IOException
java.io.IOExceptionpublic InMemoryObjectReadChannel(byte[] channelContents,
GoogleCloudStorageReadOptions readOptions)
throws java.io.IOException
readOptions plumbed into
the base class.java.io.IOExceptionprotected java.io.InputStream openStreamAndSetMetadata(long newPosition)
throws java.io.IOException
openStreamAndSetMetadata in class GoogleCloudStorageReadChannelnewPosition - position to seek into the new stream.java.io.IOException - on IO errorCopyright © 2018. All rights reserved.