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, skippublic void readFully(long position,
byte[] buffer)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic int read(long position,
byte[] b,
int off,
int len)
read in interface org.apache.hadoop.fs.PositionedReadablepublic void readFully(long position,
byte[] buffer,
int offset,
int length)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekableIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic boolean seekToNewSource(long arg0)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableIOExceptionpublic void seek(long arg0)
throws IOException
seek in interface org.apache.hadoop.fs.SeekableIOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.