public class BmcDirectFSInputStream extends BmcFSInputStream
closed, currentPosition, objectStorage, requestBuilder, sourceInputStream, statistics, status
Constructor and Description |
---|
BmcDirectFSInputStream(com.oracle.bmc.objectstorage.ObjectStorage objectStorage,
FileStatus status,
Supplier<com.oracle.bmc.objectstorage.requests.GetObjectRequest.Builder> requestBuilder,
FileSystem.Statistics statistics) |
Modifier and Type | Method and Description |
---|---|
protected long |
doSeek(long position)
Perform the requested seek operation.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, close, getPos, getSourceInputStream, getStatistics, seek, seekToNewSource, setSourceInputStream, validateState, wrap
read, readFully, readFully, toString, validatePositionedReadArgs
mark, markSupported, read, reset, skip
public BmcDirectFSInputStream(com.oracle.bmc.objectstorage.ObjectStorage objectStorage, FileStatus status, Supplier<com.oracle.bmc.objectstorage.requests.GetObjectRequest.Builder> requestBuilder, FileSystem.Statistics statistics)
protected long doSeek(long position) throws IOException
BmcFSInputStream
BmcFSInputStream.setSourceInputStream(InputStream)
before returning. The input stream that was
originally created (and wrapped by BmcFSInputStream.wrap(InputStream)
can be obtained from
BmcFSInputStream.getSourceInputStream()
.doSeek
in class BmcFSInputStream
position
- The position to seek to.IOException
- if the operation could not be completedpublic int read() throws IOException
read
in class BmcFSInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class BmcFSInputStream
IOException
Copyright © 2016–2023. All rights reserved.