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_SIZEFields inherited from interface org.apache.commons.vfs2.FileObject
EMPTY_ARRAY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDatabaseFileObject(org.apache.commons.vfs2.provider.AbstractFileName name, DatabaseFileSystem fs) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected longprotected InputStreamprotected org.apache.commons.vfs2.FileTypeprotected String[]org.apache.commons.vfs2.FileObject[]booleanprotected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainerreturns either a managed or unmanaged connection relying on theRequestLifeCycleFilter.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, toStringMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.vfs2.FileObject
getPath, getURIMethods 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:
isReadablein interfaceorg.apache.commons.vfs2.FileObject- Overrides:
isReadablein classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
doGetContentSize
- Specified by:
doGetContentSizein classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
Exception
-
doGetInputStream
- Overrides:
doGetInputStreamin classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
Exception
-
doGetType
- Specified by:
doGetTypein classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
Exception
-
getChildren
public org.apache.commons.vfs2.FileObject[] getChildren() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getChildrenin interfaceorg.apache.commons.vfs2.FileObject- Overrides:
getChildrenin classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
doListChildren
- Specified by:
doListChildrenin classorg.apache.commons.vfs2.provider.AbstractFileObject- Throws:
Exception
-
getBindingSet
- Throws:
BindingException
-
obtainConnection
protected de.businesscode.bcdui.vfs.provider.database.DatabaseFileObject.ConnectionContainer obtainConnection() throws Exceptionreturns either a managed or unmanaged connection relying on theRequestLifeCycleFilter.isThreadBoundToHttpRequest()method.- Returns:
DatabaseFileObject.ConnectionContainer- Throws:
Exception
-