|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
com.enterprisedt.net.ftp.FileTransferInputStream
public abstract class FileTransferInputStream
Super class of all input streams supported
Field Summary | |
---|---|
protected boolean |
closed
Has the stream been closed? |
protected FTPProgressMonitor |
monitor
Progress monitor reference |
protected long |
monitorCount
Count of byte since last the progress monitor was notified. |
protected FTPProgressMonitorEx |
monitorEx
Progress monitor reference |
protected long |
monitorInterval
Interval that we notify the monitor of progress |
protected long |
pos
Byte position in file |
protected java.lang.String |
remoteFile
Name of remote file being transferred |
protected boolean |
started
Flag to indicated we've started downloading |
Constructor Summary | |
---|---|
FileTransferInputStream()
|
Method Summary | |
---|---|
protected void |
checkMonitor()
Check if time to invoke the monitor |
java.lang.String |
getRemoteFile()
Get the name of the remote file |
void |
setMonitor(FTPProgressMonitorEx monitor,
long monitorInterval)
The input stream uses the progress monitor currently owned by the FTP client. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String remoteFile
protected boolean closed
protected long monitorInterval
protected long pos
protected long monitorCount
protected FTPProgressMonitor monitor
protected FTPProgressMonitorEx monitorEx
protected boolean started
Constructor Detail |
---|
public FileTransferInputStream()
Method Detail |
---|
public java.lang.String getRemoteFile()
public void setMonitor(FTPProgressMonitorEx monitor, long monitorInterval)
monitor
- progress monitor referencemonitorInterval
- protected void checkMonitor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |