com.maverick.sshd.sftp
Interface AbstractFile

All Known Subinterfaces:
VirtualFile
All Known Implementing Classes:
AbstractDirectFile, AbstractFileAdapter, AbstractFileImpl, DirectFile, FileSystemObject, VFSFile, VirtualMappedFile, VirtualMountFile

public interface AbstractFile


Method Summary
 void copyFrom(AbstractFile src)
           
 boolean createFolder()
           
 boolean createNewFile()
           
 boolean delete(boolean recursive)
           
 boolean exists()
           
 String getAbsolutePath()
           
 SftpFileAttributes getAttributes()
           
 String getCanonicalPath()
           
 List<AbstractFile> getChildren()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 OutputStream getOutputStream(boolean append)
           
 boolean isDirectory()
           
 boolean isFile()
           
 boolean isHidden()
           
 boolean isMount()
           
 boolean isReadable()
           
 boolean isWritable()
           
 long lastModified()
           
 long length()
           
 void moveTo(AbstractFile target)
           
 AbstractFileRandomAccess openFile(boolean writeAccess)
           
 void refresh()
           
 AbstractFile resolveFile(String child)
           
 void setAttributes(SftpFileAttributes attrs)
           
 boolean supportsRandomAccess()
           
 void truncate()
           
 

Method Detail

getName

String getName()

getInputStream

InputStream getInputStream()
                           throws IOException
Throws:
IOException

exists

boolean exists()
               throws IOException
Throws:
IOException

isMount

boolean isMount()
                throws IOException,
                       PermissionDeniedException
Throws:
IOException
PermissionDeniedException

getChildren

List<AbstractFile> getChildren()
                               throws IOException,
                                      PermissionDeniedException
Throws:
IOException
PermissionDeniedException

getAbsolutePath

String getAbsolutePath()
                       throws IOException,
                              PermissionDeniedException
Throws:
IOException
PermissionDeniedException

isDirectory

boolean isDirectory()
                    throws IOException
Throws:
IOException

isFile

boolean isFile()
               throws IOException
Throws:
IOException

getOutputStream

OutputStream getOutputStream()
                             throws IOException
Throws:
IOException

isHidden

boolean isHidden()
                 throws IOException
Throws:
IOException

createFolder

boolean createFolder()
                     throws PermissionDeniedException,
                            IOException
Throws:
PermissionDeniedException
IOException

isReadable

boolean isReadable()
                   throws IOException
Throws:
IOException

copyFrom

void copyFrom(AbstractFile src)
              throws IOException,
                     PermissionDeniedException
Throws:
IOException
PermissionDeniedException

moveTo

void moveTo(AbstractFile target)
            throws IOException,
                   PermissionDeniedException
Throws:
IOException
PermissionDeniedException

delete

boolean delete(boolean recursive)
               throws IOException,
                      PermissionDeniedException
Throws:
IOException
PermissionDeniedException

getAttributes

SftpFileAttributes getAttributes()
                                 throws FileNotFoundException,
                                        IOException,
                                        PermissionDeniedException
Throws:
FileNotFoundException
IOException
PermissionDeniedException

refresh

void refresh()

lastModified

long lastModified()
                  throws IOException
Throws:
IOException

length

long length()
            throws IOException
Throws:
IOException

isWritable

boolean isWritable()
                   throws IOException
Throws:
IOException

createNewFile

boolean createNewFile()
                      throws PermissionDeniedException,
                             IOException
Throws:
PermissionDeniedException
IOException

truncate

void truncate()
              throws PermissionDeniedException,
                     IOException
Throws:
PermissionDeniedException
IOException

setAttributes

void setAttributes(SftpFileAttributes attrs)
                   throws IOException
Throws:
IOException

getCanonicalPath

String getCanonicalPath()
                        throws IOException,
                               PermissionDeniedException
Throws:
IOException
PermissionDeniedException

supportsRandomAccess

boolean supportsRandomAccess()

openFile

AbstractFileRandomAccess openFile(boolean writeAccess)
                                  throws IOException
Throws:
IOException

getOutputStream

OutputStream getOutputStream(boolean append)
                             throws IOException
Throws:
IOException

resolveFile

AbstractFile resolveFile(String child)
                         throws IOException,
                                PermissionDeniedException
Throws:
IOException
PermissionDeniedException


Copyright © 2012. All Rights Reserved.