com.maverick.vfs.ssh
Class SftpFileObject

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileObject
      extended by com.maverick.vfs.ssh.SftpFileObject
All Implemented Interfaces:
org.apache.commons.vfs2.FileObject

public class SftpFileObject
extends org.apache.commons.vfs2.provider.AbstractFileObject


Constructor Summary
protected SftpFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, SftpFileSystem fs)
           
 
Method Summary
protected  void doAttach()
           
protected  void doCreateFolder()
           
protected  void doDelete()
           
protected  void doDetach()
           
protected  java.util.Map doGetAttributes()
           
protected  long doGetContentSize()
           
protected  java.io.InputStream doGetInputStream()
           
protected  long doGetLastModifiedTime()
           
protected  java.io.OutputStream doGetOutputStream(boolean bAppend)
           
protected  org.apache.commons.vfs2.RandomAccessContent doGetRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode)
           
protected  org.apache.commons.vfs2.FileType doGetType()
           
protected  boolean doIsHidden()
           
protected  java.lang.String[] doListChildren()
           
protected  void doRename(org.apache.commons.vfs2.FileObject newfile)
           
protected  boolean doSetLastModifiedTime(long modtime)
           
 
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject
canRenameTo, childrenChanged, close, copyFrom, createFile, createFolder, delete, delete, doCreateFileContent, doGetCertificates, doIsReadable, doIsSameFile, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doSetAttribute, endOutput, exists, finalize, findFiles, findFiles, getChild, getChildren, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getName, getOutputStream, getOutputStream, getParent, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isHidden, isReadable, isSameFile, isWriteable, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SftpFileObject

protected SftpFileObject(org.apache.commons.vfs2.provider.AbstractFileName name,
                         SftpFileSystem fs)
Method Detail

doGetType

protected org.apache.commons.vfs2.FileType doGetType()
                                              throws java.lang.Exception
Specified by:
doGetType in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doCreateFolder

protected void doCreateFolder()
                       throws java.lang.Exception
Overrides:
doCreateFolder in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetLastModifiedTime

protected long doGetLastModifiedTime()
                              throws java.lang.Exception
Overrides:
doGetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doSetLastModifiedTime

protected boolean doSetLastModifiedTime(long modtime)
                                 throws java.lang.Exception
Overrides:
doSetLastModifiedTime in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doDelete

protected void doDelete()
                 throws java.lang.Exception
Overrides:
doDelete in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doRename

protected void doRename(org.apache.commons.vfs2.FileObject newfile)
                 throws java.lang.Exception
Overrides:
doRename in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doListChildren

protected java.lang.String[] doListChildren()
                                     throws java.lang.Exception
Specified by:
doListChildren in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetAttributes

protected java.util.Map doGetAttributes()
                                 throws java.lang.Exception
Overrides:
doGetAttributes in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetContentSize

protected long doGetContentSize()
                         throws java.lang.Exception
Specified by:
doGetContentSize in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetRandomAccessContent

protected org.apache.commons.vfs2.RandomAccessContent doGetRandomAccessContent(org.apache.commons.vfs2.util.RandomAccessMode mode)
                                                                        throws java.lang.Exception
Overrides:
doGetRandomAccessContent in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetInputStream

protected java.io.InputStream doGetInputStream()
                                        throws java.lang.Exception
Specified by:
doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doAttach

protected void doAttach()
                 throws java.lang.Exception
Overrides:
doAttach in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doDetach

protected void doDetach()
                 throws java.lang.Exception
Overrides:
doDetach in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doGetOutputStream

protected java.io.OutputStream doGetOutputStream(boolean bAppend)
                                          throws java.lang.Exception
Overrides:
doGetOutputStream in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception

doIsHidden

protected boolean doIsHidden()
                      throws java.lang.Exception
Overrides:
doIsHidden in class org.apache.commons.vfs2.provider.AbstractFileObject
Throws:
java.lang.Exception


Copyright © 2012. All Rights Reserved.