public class FtpFileSystem extends Object implements org.jboss.vfs.spi.FileSystem
Constructor and Description |
---|
FtpFileSystem(org.apache.commons.net.ftp.FTPClient ftpClient) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
delete(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
exists(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
CodeSigner[] |
getCodeSigners(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
List<String> |
getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
File |
getFile(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
long |
getLastModified(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
File |
getMountSource() |
URI |
getRootURI() |
long |
getSize(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isDirectory(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isFile(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
boolean |
isReadOnly() |
InputStream |
openInputStream(org.jboss.vfs.VirtualFile mountPoint,
org.jboss.vfs.VirtualFile target) |
public FtpFileSystem(org.apache.commons.net.ftp.FTPClient ftpClient)
public File getFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
getFile
in interface org.jboss.vfs.spi.FileSystem
IOException
public InputStream openInputStream(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
openInputStream
in interface org.jboss.vfs.spi.FileSystem
IOException
public boolean isReadOnly()
isReadOnly
in interface org.jboss.vfs.spi.FileSystem
public boolean delete(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
delete
in interface org.jboss.vfs.spi.FileSystem
public long getSize(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getSize
in interface org.jboss.vfs.spi.FileSystem
public long getLastModified(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getLastModified
in interface org.jboss.vfs.spi.FileSystem
public boolean exists(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
exists
in interface org.jboss.vfs.spi.FileSystem
public boolean isFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
isFile
in interface org.jboss.vfs.spi.FileSystem
public boolean isDirectory(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
isDirectory
in interface org.jboss.vfs.spi.FileSystem
public List<String> getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getDirectoryEntries
in interface org.jboss.vfs.spi.FileSystem
public CodeSigner[] getCodeSigners(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
getCodeSigners
in interface org.jboss.vfs.spi.FileSystem
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.jboss.vfs.spi.FileSystem
IOException
public File getMountSource()
getMountSource
in interface org.jboss.vfs.spi.FileSystem
public URI getRootURI() throws URISyntaxException
getRootURI
in interface org.jboss.vfs.spi.FileSystem
URISyntaxException
Copyright © 2018 JBoss by Red Hat. All rights reserved.