public class SeekableBAIS extends ByteArrayInputStream implements org.apache.hadoop.fs.Seekable
buf, count, mark, pos
Constructor and Description |
---|
SeekableBAIS(byte[] buf) |
SeekableBAIS(byte[] buf,
int offset,
int length) |
Modifier and Type | Method and Description |
---|---|
long |
getPos() |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
available, close, mark, markSupported, read, read, reset, skip
read
public SeekableBAIS(byte[] buf, int offset, int length)
public SeekableBAIS(byte[] buf)
public void seek(long pos) throws IOException
seek
in interface org.apache.hadoop.fs.Seekable
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.fs.Seekable
IOException
public boolean seekToNewSource(long targetPos) throws IOException
seekToNewSource
in interface org.apache.hadoop.fs.Seekable
IOException
Copyright © 1970 The Apache Software Foundation. All rights reserved.