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, skip
public LocalInputStream(org.apache.hadoop.fs.Path path) throws IOException
IOException
public int read(long l, byte[] bytes, int i, int i2) throws IOException
read
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void readFully(long l, byte[] bytes, int i, int i2) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void readFully(long l, byte[] bytes) throws IOException
readFully
in interface org.apache.hadoop.fs.PositionedReadable
IOException
public void seek(long l) 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 l) throws IOException
seekToNewSource
in interface org.apache.hadoop.fs.Seekable
IOException
public int read(ByteBuffer buf) throws IOException
read
in interface org.apache.hadoop.fs.ByteBufferReadable
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
Copyright © 2022 The Apache Software Foundation. All rights reserved.