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, readFullyavailable, read, skippublic FTPInputStream(InputStream stream, org.apache.commons.net.ftp.FTPClient client, FileSystem.Statistics stats)
public long getPos()
throws IOException
FSInputStreamgetPos 在接口中 SeekablegetPos 在类中 FSInputStreamIOExceptionpublic void seek(long pos)
throws IOException
FSInputStreamseek 在接口中 Seekableseek 在类中 FSInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
FSInputStreamseekToNewSource 在接口中 SeekableseekToNewSource 在类中 FSInputStreamIOExceptionpublic int read()
throws IOException
read 在类中 InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read 在类中 InputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionpublic boolean markSupported()
markSupported 在类中 InputStreampublic void mark(int readLimit)
mark 在类中 InputStreampublic void reset()
throws IOException
reset 在类中 InputStreamIOExceptionCopyright © 2009 The Apache Software Foundation