@InterfaceAudience.Private @InterfaceStability.Unstable public class FTPInputStream extends FSInputStream
| Constructor and Description |
|---|
FTPInputStream(InputStream stream,
org.apache.commons.net.ftp.FTPClient client,
FileSystem.Statistics stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getPos()
Return the current offset from the start of the file
|
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
void |
reset() |
void |
seek(long pos)
Seek to the given offset from the start of the file.
|
boolean |
seekToNewSource(long targetPos)
Seeks a different copy of the data.
|
read, readFully, readFullyavailable, read, skippublic FTPInputStream(InputStream stream, org.apache.commons.net.ftp.FTPClient client, FileSystem.Statistics stats)
public long getPos()
throws IOException
FSInputStreamgetPos in interface SeekablegetPos in class FSInputStreamIOExceptionpublic void seek(long pos)
throws IOException
FSInputStreamseek in interface Seekableseek in class FSInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
FSInputStreamseekToNewSource in interface SeekableseekToNewSource in class FSInputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.