Class DatabaseFileObject

java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileObject
de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject
All Implemented Interfaces:
Closeable, AutoCloseable, Comparable, Iterable, org.apache.commons.vfs2.FileObject

public class DatabaseFileObject extends org.apache.commons.vfs2.provider.AbstractFileObject
Representer for a File object, is not threadsafe
  • Field Summary

    Fields inherited from class org.apache.commons.vfs2.provider.AbstractFileObject

    DEFAULT_BUFFER_SIZE

    Fields inherited from interface org.apache.commons.vfs2.FileObject

    EMPTY_ARRAY
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    DatabaseFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, DatabaseFileSystem fs)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected long
     
    protected InputStream
     
    protected org.apache.commons.vfs2.FileType
     
    protected String[]
     
     
    org.apache.commons.vfs2.FileObject[]
     
    boolean
     
    protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer
    returns either a managed or unmanaged connection relying on the RequestLifeCycleFilter.isThreadBoundToHttpRequest() method.

    Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileObject

    canRenameTo, childrenChanged, close, compareTo, copyFrom, createFile, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doCreateFolder, doDelete, doDetach, doGetAttributes, doGetCertificates, doGetInputStream, doGetLastModifiedTime, doGetOutputStream, doGetRandomAccessContent, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doIsWriteable, doListChildrenResolved, doRemoveAttribute, doRename, doSetAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getContent, getFileContentInfoFactory, getFileOperations, getFileSystem, getInputStream, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isSameFile, isSymbolicLink, isWriteable, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toString

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.vfs2.FileObject

    getPath, getURI

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

    • DatabaseFileObject

      protected DatabaseFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, DatabaseFileSystem fs)
      Constructor
  • Method Details

    • isReadable

      public boolean isReadable() throws org.apache.commons.vfs2.FileSystemException
      Specified by:
      isReadable in interface org.apache.commons.vfs2.FileObject
      Overrides:
      isReadable in class org.apache.commons.vfs2.provider.AbstractFileObject
      Throws:
      org.apache.commons.vfs2.FileSystemException
    • doGetContentSize

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

      protected InputStream doGetInputStream() throws Exception
      Overrides:
      doGetInputStream in class org.apache.commons.vfs2.provider.AbstractFileObject
      Throws:
      Exception
    • doGetType

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

      public org.apache.commons.vfs2.FileObject[] getChildren() throws org.apache.commons.vfs2.FileSystemException
      Specified by:
      getChildren in interface org.apache.commons.vfs2.FileObject
      Overrides:
      getChildren in class org.apache.commons.vfs2.provider.AbstractFileObject
      Throws:
      org.apache.commons.vfs2.FileSystemException
    • doListChildren

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

      public BindingSet getBindingSet() throws BindingException
      Throws:
      BindingException
    • obtainConnection

      protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer obtainConnection() throws Exception
      returns either a managed or unmanaged connection relying on the RequestLifeCycleFilter.isThreadBoundToHttpRequest() method.
      Returns:
      DatabaseFileObject.ConnectionContainer
      Throws:
      Exception