com.maverick.sshd.fs
Class VFSFile

java.lang.Object
  extended by com.maverick.sshd.fs.AbstractFileImpl<VFSFile,NoMount>
      extended by com.maverick.sshd.fs.VFSFile
All Implemented Interfaces:
AbstractFile

public class VFSFile
extends AbstractFileImpl<VFSFile,NoMount>


Field Summary
 
Fields inherited from class com.maverick.sshd.fs.AbstractFileImpl
fileFactory
 
Constructor Summary
VFSFile(String path, AbstractFileFactory<VFSFile,NoMount> fileFactory, Connection con)
           
VFSFile(String path, AbstractFileFactory<VFSFile,NoMount> fileFactory, Connection con, org.apache.commons.vfs2.FileSystemOptions opts)
           
 
Method Summary
 boolean createFolder()
           
 boolean createNewFile()
           
 boolean delete(boolean recurse)
           
 boolean exists()
           
 String getAbsolutePath()
           
 SftpFileAttributes getAttributes()
           
 String getCanonicalPath()
           
 List<AbstractFile> getChildren()
           
 org.apache.commons.vfs2.FileObject getFileObject()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 boolean isMount()
           
 boolean isReadable()
           
 boolean isWritable()
           
 long lastModified()
           
 long length()
           
 void moveTo(AbstractFile f2)
           
 AbstractFileRandomAccess openFile(boolean writeAccess)
           
 void refresh()
           
 void setAttributes(SftpFileAttributes attrs)
           
 boolean supportsRandomAccess()
           
 void truncate()
           
 
Methods inherited from class com.maverick.sshd.fs.AbstractFileImpl
copyFrom, getOutputStream, resolveFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.