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.
|
| Modifier and Type | Method and Description |
|---|---|
protected 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, getEncoding, getMetadata, isOpen, position, position, read, setMaxRetries, setSize, setSize, size, truncate, validatePosition, writepublic InMemoryObjectReadChannel(byte[] channelContents)
throws IOException
IOExceptionprotected InputStream openStreamAndSetMetadata(long newPosition) throws IOException
openStreamAndSetMetadata in class GoogleCloudStorageReadChannelnewPosition - position to seek into the new stream.IOException - on IO errorCopyright © 2016. All rights reserved.