public class LocalSyncableFileSystem.LocalInputStream extends InputStream implements org.apache.hadoop.fs.Seekable, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.ByteBufferReadable
| Constructor and Description |
|---|
LocalInputStream(org.apache.hadoop.fs.Path path) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPos() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
int |
read(ByteBuffer buf) |
int |
read(long l,
byte[] bytes,
int i,
int i2) |
void |
readFully(long l,
byte[] bytes) |
void |
readFully(long l,
byte[] bytes,
int i,
int i2) |
void |
seek(long l) |
boolean |
seekToNewSource(long l) |
available, mark, markSupported, reset, skippublic LocalInputStream(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionpublic int read(long l,
byte[] bytes,
int i,
int i2)
throws IOException
read in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long l,
byte[] bytes,
int i,
int i2)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void readFully(long l,
byte[] bytes)
throws IOException
readFully in interface org.apache.hadoop.fs.PositionedReadableIOExceptionpublic void seek(long l)
throws IOException
seek in interface org.apache.hadoop.fs.SeekableIOExceptionpublic long getPos()
throws IOException
getPos in interface org.apache.hadoop.fs.SeekableIOExceptionpublic boolean seekToNewSource(long l)
throws IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableIOExceptionpublic int read(ByteBuffer buf) throws IOException
read in interface org.apache.hadoop.fs.ByteBufferReadableIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamCopyright © 2022 The Apache Software Foundation. All rights reserved.