public abstract class InStream extends InputStream
InStream
is the base input stream class for TachyonFile streaming input methods.
It can only be gotten by calling the methods in tachyon.client.TachyonFile
, but
can not be initialized by the client code.Modifier and Type | Field and Description |
---|---|
protected TachyonFile |
FILE |
protected ReadType |
READ_TYPE |
protected TachyonFS |
TFS |
protected UserConf |
USER_CONF |
Modifier and Type | Method and Description |
---|---|
abstract void |
close() |
abstract int |
read() |
abstract int |
read(byte[] b) |
abstract int |
read(byte[] b,
int off,
int len) |
abstract void |
seek(long pos)
Sets the stream pointer offset, measured from the beginning of this stream, at which the next
read or write occurs.
|
abstract long |
skip(long n) |
available, mark, markSupported, reset
protected final UserConf USER_CONF
protected final TachyonFile FILE
protected final TachyonFS TFS
protected final ReadType READ_TYPE
public abstract int read() throws IOException
read
in class InputStream
IOException
public abstract int read(byte[] b) throws IOException
read
in class InputStream
IOException
public abstract int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public abstract void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public abstract long skip(long n) throws IOException
skip
in class InputStream
IOException
public abstract void seek(long pos) throws IOException
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.Copyright © 2013. All rights reserved.