public interface Ftplett
Servlett.| 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> lineConsumer) |
boolean |
nameList(String name,
de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> lineConsumer) |
boolean |
rename(String from,
String to) |
InputStream |
retrieve(String resourceName) |
OutputStream |
store(String resourceName) |
boolean changeWorkingDirectory(@Nullable String directoryName) throws IOException
directoryName - null means change to some 'root' or 'home' directoryIOExceptionString getWorkingDirectory()
@Nullable InputStream retrieve(String resourceName) throws IOException
InputStream producing the contents of the resource, or null iff the resource cannot
be accessed.IOException@Nullable OutputStream store(String resourceName) throws IOException
OutputStream to which the contents can be written, or null iff the resource cannot
be accessed.IOExceptionboolean list(@Nullable String name, de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> lineConsumer) throws IOException
name - The name of the directory or file to list, or null to list the current working
directorylineConsumer - Consumes the listingIOExceptionboolean nameList(@Nullable String name, de.unkrig.commons.lang.protocol.ConsumerWhichThrows<String,IOException> lineConsumer) throws IOException
name - The name of the directory or file to list, or null to list the current working
directorylineConsumer - Consumes the listingIOExceptionboolean delete(String resourceName) throws IOException
IOExceptionboolean rename(String from, String to) throws IOException
IOException@Nullable Date getModificationTime(String resourceName) throws IOException
null iff the modification time cannot be determinedIOExceptionCopyright © 2018 Arno Unkrig. All rights reserved.