@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, readFully
available, read, skip
public FTPInputStream(InputStream stream, org.apache.commons.net.ftp.FTPClient client, FileSystem.Statistics stats)
public long getPos() throws IOException
FSInputStream
getPos
in interface Seekable
getPos
in class FSInputStream
IOException
public void seek(long pos) throws IOException
FSInputStream
seek
in interface Seekable
seek
in class FSInputStream
IOException
public boolean seekToNewSource(long targetPos) throws IOException
FSInputStream
seekToNewSource
in interface Seekable
seekToNewSource
in class FSInputStream
IOException
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public boolean markSupported()
markSupported
in class InputStream
public void mark(int readLimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.