public interface Ftplett
Servlett.| Modifier and Type | Method and Description |
|---|---|
boolean |
changeWorkingDirectory(java.lang.String directoryName) |
boolean |
delete(java.lang.String resourceName) |
java.util.Date |
getModificationTime(java.lang.String resourceName) |
java.lang.String |
getWorkingDirectory() |
boolean |
list(java.lang.String name,
ConsumerWhichThrows<java.lang.String,java.io.IOException> lineConsumer) |
boolean |
nameList(java.lang.String name,
ConsumerWhichThrows<java.lang.String,java.io.IOException> lineConsumer) |
boolean |
rename(java.lang.String from,
java.lang.String to) |
java.io.InputStream |
retrieve(java.lang.String resourceName) |
java.io.OutputStream |
store(java.lang.String resourceName) |
boolean changeWorkingDirectory(@Nullable java.lang.String directoryName) throws java.io.IOException
directoryName - null means change to some 'root' or 'home' directoryjava.io.IOExceptionjava.lang.String getWorkingDirectory()
@Nullable java.io.InputStream retrieve(java.lang.String resourceName) throws java.io.IOException
InputStream producing the contents of the resource, or null iff the resource cannot
be accessed.java.io.IOException@Nullable java.io.OutputStream store(java.lang.String resourceName) throws java.io.IOException
OutputStream to which the contents can be written, or null iff the resource cannot
be accessed.java.io.IOExceptionboolean list(@Nullable java.lang.String name, ConsumerWhichThrows<java.lang.String,java.io.IOException> lineConsumer) throws java.io.IOException
name - The name of the directory or file to list, or null to list the current working
directorylineConsumer - Consumes the listingjava.io.IOExceptionboolean nameList(@Nullable java.lang.String name, ConsumerWhichThrows<java.lang.String,java.io.IOException> lineConsumer) throws java.io.IOException
name - The name of the directory or file to list, or null to list the current working
directorylineConsumer - Consumes the listingjava.io.IOExceptionboolean delete(java.lang.String resourceName)
throws java.io.IOException
java.io.IOExceptionboolean rename(java.lang.String from,
java.lang.String to)
throws java.io.IOException
java.io.IOException@Nullable java.util.Date getModificationTime(java.lang.String resourceName) throws java.io.IOException
null iff the modification time cannot be determinedjava.io.IOException