com.maverick.sshd.fs
Class VFSFile
java.lang.Object
com.maverick.sshd.fs.AbstractFileImpl<VFSFile,NoMount>
com.maverick.sshd.fs.VFSFile
- All Implemented Interfaces:
- AbstractFile
public class VFSFile
- extends AbstractFileImpl<VFSFile,NoMount>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VFSFile
public VFSFile(String path,
AbstractFileFactory<VFSFile,NoMount> fileFactory,
Connection con)
throws IOException
- Throws:
IOException
VFSFile
public VFSFile(String path,
AbstractFileFactory<VFSFile,NoMount> fileFactory,
Connection con,
org.apache.commons.vfs2.FileSystemOptions opts)
throws IOException
- Throws:
IOException
getFileObject
public org.apache.commons.vfs2.FileObject getFileObject()
exists
public boolean exists()
throws IOException
- Throws:
IOException
createFolder
public boolean createFolder()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
lastModified
public long lastModified()
throws IOException
- Throws:
IOException
getName
public String getName()
length
public long length()
throws IOException
- Throws:
IOException
getAttributes
public SftpFileAttributes getAttributes()
throws IOException
- Throws:
IOException
isHidden
public boolean isHidden()
throws IOException
- Throws:
IOException
isDirectory
public boolean isDirectory()
throws IOException
- Throws:
IOException
getChildren
public List<AbstractFile> getChildren()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
isFile
public boolean isFile()
throws IOException
- Throws:
IOException
getAbsolutePath
public String getAbsolutePath()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
isReadable
public boolean isReadable()
throws IOException
- Throws:
IOException
isWritable
public boolean isWritable()
throws IOException
- Throws:
IOException
createNewFile
public boolean createNewFile()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
truncate
public void truncate()
throws PermissionDeniedException,
IOException
- Throws:
PermissionDeniedException
IOException
getInputStream
public InputStream getInputStream()
throws IOException
- Throws:
IOException
getOutputStream
public OutputStream getOutputStream()
throws IOException
- Throws:
IOException
delete
public boolean delete(boolean recurse)
throws IOException
- Throws:
IOException
moveTo
public void moveTo(AbstractFile f2)
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
setAttributes
public void setAttributes(SftpFileAttributes attrs)
getCanonicalPath
public String getCanonicalPath()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
supportsRandomAccess
public boolean supportsRandomAccess()
openFile
public AbstractFileRandomAccess openFile(boolean writeAccess)
throws IOException
- Throws:
IOException
isMount
public boolean isMount()
throws IOException,
PermissionDeniedException
- Throws:
IOException
PermissionDeniedException
refresh
public void refresh()
Copyright © 2012. All Rights Reserved.