public class FTPInputStream extends FSInputStream
构造器和说明 |
---|
FTPInputStream(InputStream stream,
org.apache.commons.net.ftp.FTPClient client,
FileSystem.Statistics stats) |
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 Seekable
getPos
在类中 FSInputStream
IOException
public void seek(long pos) throws IOException
FSInputStream
seek
在接口中 Seekable
seek
在类中 FSInputStream
IOException
public boolean seekToNewSource(long targetPos) throws IOException
FSInputStream
seekToNewSource
在接口中 Seekable
seekToNewSource
在类中 FSInputStream
IOException
public int read() throws IOException
read
在类中 InputStream
IOException
public int read(byte[] buf, int off, int len) throws IOException
read
在类中 InputStream
IOException
public void close() throws IOException
close
在接口中 Closeable
close
在接口中 AutoCloseable
close
在类中 InputStream
IOException
public boolean markSupported()
markSupported
在类中 InputStream
public void mark(int readLimit)
mark
在类中 InputStream
public void reset() throws IOException
reset
在类中 InputStream
IOException
Copyright © 2009 The Apache Software Foundation