public class FTPRemoteFile extends AbstractRemoteFile
This class depends on Jakarta's commons-net library (which depends on jakarta-oro).
| Constructor and Description |
|---|
FTPRemoteFile(org.apache.commons.net.ftp.FTPClient inFTP,
String inFTPServer,
String inParentDirPath,
org.apache.commons.net.ftp.FTPFile inFTPFile) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Note that the FTP connection is closed when the returned InputStream is closed.
|
String |
getName() |
String |
getPath() |
String |
getRequestedPath()
The requested path may differ from getPath() if the requested path was a symbolic link.
|
long |
getSize() |
Calendar |
getTimestamp() |
String |
getURL() |
void |
setFileTransferMode(int inValue)
Use FTP.ASCII_FILE_TYPE or FTP.BINARY_FILE_TYPE (default).
|
FTPRemoteFile |
setRequestedPath(String inValue) |
long |
writeToStream(OutputStream stream) |
copyLocallyPreservingPath, toString, writeToLocalDir, writeToLocalFilepublic FTPRemoteFile(org.apache.commons.net.ftp.FTPClient inFTP, String inFTPServer, String inParentDirPath, org.apache.commons.net.ftp.FTPFile inFTPFile)
public FTPRemoteFile setRequestedPath(String inValue)
public String getRequestedPath()
RemoteFilepublic long getSize()
public Calendar getTimestamp()
public void setFileTransferMode(int inValue)
public InputStream getInputStream() throws IOException
IOExceptionpublic long writeToStream(OutputStream stream) throws IOException
writeToStream in interface RemoteFilewriteToStream in class AbstractRemoteFileIOException
jataylor@hairyfatguy.com