public class RemoteBlockInStream extends BlockInStream
mBlockIndex, mClosed
mFile, mReadType, mTachyonFS
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
static ByteBuffer |
readRemoteByteBuffer(TachyonFS tachyonFS,
ClientBlockInfo blockInfo,
long offset,
long len) |
void |
seek(long pos)
Sets the stream pointer offset, measured from the beginning of this stream, at which the next
read or write occurs.
|
long |
skip(long n) |
get, get
available, mark, markSupported, reset
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InStream
IOException
public int read() throws IOException
read
in class InStream
IOException
public int read(byte[] b) throws IOException
read
in class InStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InStream
IOException
public static ByteBuffer readRemoteByteBuffer(TachyonFS tachyonFS, ClientBlockInfo blockInfo, long offset, long len)
public void seek(long pos) throws IOException
InStream
seek
in class InStream
pos
- the offset position, measured in bytes from the beginning of the InStream, at which
to set the stream pointer.IOException
- if pos is less than 0 or if an I/O error occurs.public long skip(long n) throws IOException
skip
in class InStream
IOException
Copyright © 2015. All Rights Reserved.