com.maverick.sshd.fs
Class AbstractFileImpl<T extends AbstractFile,K extends FileSystemMount>

java.lang.Object
  extended by com.maverick.sshd.fs.AbstractFileImpl<T,K>
All Implemented Interfaces:
AbstractFile
Direct Known Subclasses:
AbstractDirectFile, VFSFile

public abstract class AbstractFileImpl<T extends AbstractFile,K extends FileSystemMount>
extends Object
implements AbstractFile


Field Summary
protected  Connection con
           
protected  AbstractFileFactory<T,K> fileFactory
           
 
Constructor Summary
AbstractFileImpl(AbstractFileFactory<T,K> fileFactory, Connection con)
           
 
Method Summary
 void copyFrom(AbstractFile src)
           
 OutputStream getOutputStream(boolean append)
           
 AbstractFile resolveFile(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.maverick.sshd.sftp.AbstractFile
createFolder, createNewFile, delete, exists, getAbsolutePath, getAttributes, getCanonicalPath, getChildren, getInputStream, getName, getOutputStream, isDirectory, isFile, isHidden, isMount, isReadable, isWritable, lastModified, length, moveTo, openFile, refresh, setAttributes, supportsRandomAccess, truncate
 

Field Detail

fileFactory

protected AbstractFileFactory<T extends AbstractFile,K extends FileSystemMount> fileFactory

con

protected Connection con
Constructor Detail

AbstractFileImpl

public AbstractFileImpl(AbstractFileFactory<T,K> fileFactory,
                        Connection con)
Method Detail

copyFrom

public void copyFrom(AbstractFile src)
              throws IOException,
                     PermissionDeniedException
Specified by:
copyFrom in interface AbstractFile
Throws:
IOException
PermissionDeniedException

getOutputStream

public OutputStream getOutputStream(boolean append)
                             throws IOException
Specified by:
getOutputStream in interface AbstractFile
Throws:
IOException

resolveFile

public AbstractFile resolveFile(String name)
                         throws PermissionDeniedException,
                                IOException
Specified by:
resolveFile in interface AbstractFile
Throws:
PermissionDeniedException
IOException


Copyright © 2012. All Rights Reserved.