Constructor and Description |
---|
FtpSession(org.apache.commons.net.ftp.FTPClient client) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
exists(java.lang.String path) |
boolean |
finalizeRaw()
Invoke after closing the InputStream from
Session.readRaw(String) . |
boolean |
isOpen() |
org.apache.commons.net.ftp.FTPFile[] |
list(java.lang.String path) |
java.lang.String[] |
listNames(java.lang.String path) |
boolean |
mkdir(java.lang.String remoteDirectory) |
void |
read(java.lang.String path,
java.io.OutputStream fos) |
java.io.InputStream |
readRaw(java.lang.String source)
Retrieve a remote file as a raw
InputStream . |
boolean |
remove(java.lang.String path) |
void |
rename(java.lang.String pathFrom,
java.lang.String pathTo) |
void |
write(java.io.InputStream inputStream,
java.lang.String path) |
public boolean remove(java.lang.String path) throws java.io.IOException
public org.apache.commons.net.ftp.FTPFile[] list(java.lang.String path) throws java.io.IOException
public java.lang.String[] listNames(java.lang.String path) throws java.io.IOException
public void read(java.lang.String path, java.io.OutputStream fos) throws java.io.IOException
public java.io.InputStream readRaw(java.lang.String source) throws java.io.IOException
Session
InputStream
.public boolean finalizeRaw() throws java.io.IOException
Session
Session.readRaw(String)
.
Required by some session providers.finalizeRaw
in interface Session<org.apache.commons.net.ftp.FTPFile>
java.io.IOException
public void write(java.io.InputStream inputStream, java.lang.String path) throws java.io.IOException
public void close()
public boolean isOpen()
public void rename(java.lang.String pathFrom, java.lang.String pathTo) throws java.io.IOException
public boolean mkdir(java.lang.String remoteDirectory) throws java.io.IOException