java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.fs.PositionedReadable, org.apache.hadoop.fs.Seekable@VisibleForTesting
public class WebHdfsFileSystem.WebHdfsInputStream
extends org.apache.hadoop.fs.FSInputStream
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
protected int |
getBufferSize() |
|
long |
getFileLength() |
|
protected org.apache.hadoop.fs.Path |
getPath() |
|
long |
getPos() |
|
int |
read() |
|
int |
read(byte[] b,
int off,
int len) |
|
void |
seek(long newPos) |
|
boolean |
seekToNewSource(long targetPos) |
|
void |
setFileLength(long len) |
read, readFully, readFully, toString, validatePositionedReadArgsavailable, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTopublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void seek(long newPos)
throws java.io.IOException
seek in interface org.apache.hadoop.fs.Seekableseek in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionpublic long getPos()
throws java.io.IOException
getPos in interface org.apache.hadoop.fs.SeekablegetPos in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionprotected int getBufferSize()
throws java.io.IOException
java.io.IOExceptionprotected org.apache.hadoop.fs.Path getPath()
throws java.io.IOException
java.io.IOExceptionpublic boolean seekToNewSource(long targetPos)
throws java.io.IOException
seekToNewSource in interface org.apache.hadoop.fs.SeekableseekToNewSource in class org.apache.hadoop.fs.FSInputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOExceptionpublic void setFileLength(long len)
public long getFileLength()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.