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
ConstructorsModifierConstructorDescriptionprotected
DatabaseFileObject
(org.apache.commons.vfs2.provider.AbstractFileName name, DatabaseFileSystem fs) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 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, 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 interfaceorg.apache.commons.vfs2.FileObject
- Overrides:
isReadable
in classorg.apache.commons.vfs2.provider.AbstractFileObject
- Throws:
org.apache.commons.vfs2.FileSystemException
-
doGetContentSize
- Specified by:
doGetContentSize
in classorg.apache.commons.vfs2.provider.AbstractFileObject
- Throws:
Exception
-
doGetInputStream
- Overrides:
doGetInputStream
in classorg.apache.commons.vfs2.provider.AbstractFileObject
- Throws:
Exception
-
doGetType
- Specified by:
doGetType
in classorg.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 interfaceorg.apache.commons.vfs2.FileObject
- Overrides:
getChildren
in classorg.apache.commons.vfs2.provider.AbstractFileObject
- Throws:
org.apache.commons.vfs2.FileSystemException
-
doListChildren
- Specified by:
doListChildren
in 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
-