public class ResourceInputStream extends ByteArrayInputStream implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable
buf, count, mark, pos
Constructor and Description |
---|
ResourceInputStream(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
long |
getPos() |
int |
read(byte[] b) |
int |
read(long position,
byte[] b,
int off,
int len) |
void |
readFully(long position,
byte[] buffer) |
void |
readFully(long position,
byte[] buffer,
int offset,
int length) |
void |
seek(long arg0) |
boolean |
seekToNewSource(long arg0) |
available, close, mark, markSupported, read, read, reset, skip
public void readFully(long position, byte[] buffer) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public int read(long position, byte[] b, int off, int len)
read
in interface org.apache.hadoop.fs.PositionedReadable
public void readFully(long position, byte[] buffer, int offset, int length) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public long getPos() throws IOException
getPos
in interface org.apache.hadoop.fs.Seekable
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public boolean seekToNewSource(long arg0) throws IOException
seekToNewSource
in interface org.apache.hadoop.fs.Seekable
IOException
public void seek(long arg0) throws IOException
seek
in interface org.apache.hadoop.fs.Seekable
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.