| Constructor and Description |
|---|
FileFtplett(File rootDirectory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
changeWorkingDirectory(String directoryName) |
boolean |
delete(String resourceName) |
Date |
getModificationTime(String resourceName) |
String |
getWorkingDirectory() |
boolean |
list(String name,
de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> out) |
boolean |
nameList(String name,
de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> out) |
boolean |
rename(String from,
String to) |
InputStream |
retrieve(String fileName) |
OutputStream |
store(String fileName) |
public FileFtplett(File rootDirectory) throws IOException
IOExceptionpublic boolean changeWorkingDirectory(@Nullable String directoryName) throws IOException
changeWorkingDirectory in interface FtplettdirectoryName - null means change to some 'root' or 'home' directoryIOExceptionpublic String getWorkingDirectory()
getWorkingDirectory in interface Ftplett@Nullable public InputStream retrieve(String fileName) throws IOException
retrieve in interface FtplettInputStream producing the contents of the resource, or null iff the resource cannot
be accessed.IOExceptionpublic OutputStream store(String fileName) throws IOException
store in interface FtplettOutputStream to which the contents can be written, or null iff the resource cannot
be accessed.IOExceptionpublic boolean list(@Nullable String name, de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> out) throws IOException
list in interface Ftplettname - The name of the directory or file to list, or null to list the current working
directoryout - Consumes the listingIOExceptionpublic boolean nameList(@Nullable String name, de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> out) throws IOException
nameList in interface Ftplettname - The name of the directory or file to list, or null to list the current working
directoryout - Consumes the listingIOExceptionpublic boolean delete(String resourceName) throws IOException
delete in interface FtplettIOExceptionpublic boolean rename(String from, String to) throws IOException
rename in interface FtplettIOException@Nullable public Date getModificationTime(String resourceName) throws IOException
getModificationTime in interface Ftplettnull iff the modification time cannot be determinedIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.