Package org.teiid.file.ftp
Class FtpFileSystem
- java.lang.Object
-
- org.teiid.file.ftp.FtpFileSystem
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.jboss.vfs.spi.FileSystem
public class FtpFileSystem extends Object implements org.jboss.vfs.spi.FileSystem
-
-
Constructor Summary
Constructors Constructor Description FtpFileSystem(org.apache.commons.net.ftp.FTPClient ftpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getFile
public File getFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
- Specified by:
getFile
in interfaceorg.jboss.vfs.spi.FileSystem
- Throws:
IOException
-
openInputStream
public InputStream openInputStream(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target) throws IOException
- Specified by:
openInputStream
in interfaceorg.jboss.vfs.spi.FileSystem
- Throws:
IOException
-
isReadOnly
public boolean isReadOnly()
- Specified by:
isReadOnly
in interfaceorg.jboss.vfs.spi.FileSystem
-
delete
public boolean delete(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
delete
in interfaceorg.jboss.vfs.spi.FileSystem
-
getSize
public long getSize(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
getSize
in interfaceorg.jboss.vfs.spi.FileSystem
-
getLastModified
public long getLastModified(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
getLastModified
in interfaceorg.jboss.vfs.spi.FileSystem
-
exists
public boolean exists(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
exists
in interfaceorg.jboss.vfs.spi.FileSystem
-
isFile
public boolean isFile(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
isFile
in interfaceorg.jboss.vfs.spi.FileSystem
-
isDirectory
public boolean isDirectory(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
isDirectory
in interfaceorg.jboss.vfs.spi.FileSystem
-
getDirectoryEntries
public List<String> getDirectoryEntries(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
getDirectoryEntries
in interfaceorg.jboss.vfs.spi.FileSystem
-
getCodeSigners
public CodeSigner[] getCodeSigners(org.jboss.vfs.VirtualFile mountPoint, org.jboss.vfs.VirtualFile target)
- Specified by:
getCodeSigners
in interfaceorg.jboss.vfs.spi.FileSystem
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.jboss.vfs.spi.FileSystem
- Throws:
IOException
-
getMountSource
public File getMountSource()
- Specified by:
getMountSource
in interfaceorg.jboss.vfs.spi.FileSystem
-
getRootURI
public URI getRootURI() throws URISyntaxException
- Specified by:
getRootURI
in interfaceorg.jboss.vfs.spi.FileSystem
- Throws:
URISyntaxException
-
-