Class Webdav4FileObject
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileObject<Webdav4FileSystem>
org.apache.commons.vfs2.provider.http4.Http4FileObject<Webdav4FileSystem>
org.apache.commons.vfs2.provider.webdav4.Webdav4FileObject
- All Implemented Interfaces:
- Closeable,- AutoCloseable,- Comparable<FileObject>,- Iterable<FileObject>,- FileObject
A WebDAV file.
- Since:
- 2.5.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final org.apache.jackrabbit.webdav.property.DavPropertyNameThe character set property name.Fields inherited from class org.apache.commons.vfs2.provider.AbstractFileObjectDEFAULT_BUFFER_SIZE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedWebdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem) Constructs a new instance.protectedWebdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem, Webdav4FileSystemConfigBuilder builder) Constructs a new instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreates this file as a folder.protected voiddoDelete()Deletes the file.Returns the properties of the Webdav resource.protected longReturns the size of the file content (in bytes).protected longReturns the last modified time of this file.protected OutputStreamdoGetOutputStream(boolean bAppend) protected FileTypeDetermines the type of this file.protected booleanDetermines if this file can be written to.protected String[]Lists the children of the file.protected FileObject[]Lists the children of the file.protected voiddoRename(FileObject newFile) Rename the file.protected voiddoSetAttribute(String attrName, Object value) Sets an attribute of this file.protected FileContentInfoFactoryMethods inherited from class org.apache.commons.vfs2.provider.http4.Http4FileObjectdoDetach, doGetInputStream, doGetRandomAccessContent, executeHttpUriRequest, getInternalURI, getUrlCharsetMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileObjectcanRenameTo, childrenChanged, close, compareTo, copyFrom, createFile, createFolder, delete, delete, deleteAll, doAttach, doCreateFileContent, doGetCertificates, doGetInputStream, doIsExecutable, doIsHidden, doIsReadable, doIsSameFile, doIsSymbolicLink, doRemoveAttribute, doSetExecutable, doSetLastModifiedTime, doSetReadable, doSetWritable, endOutput, exists, finalize, findFiles, findFiles, getAbstractFileSystem, getChild, getChildren, getContent, getFileOperations, getFileSystem, getInputStream, getInputStream, getName, getOutputStream, getOutputStream, getParent, getPublicURIString, getRandomAccessContent, getType, getURL, handleChanged, handleCreate, handleDelete, holdObject, injectType, isAttached, isContentOpen, isExecutable, isFile, isFolder, isHidden, isReadable, isSameFile, isSymbolicLink, isWriteable, iterator, listFiles, moveTo, notifyAllStreamsClosed, onChange, onChildrenChanged, refresh, resolveFile, resolveFile, setExecutable, setReadable, setWritable, toStringMethods inherited from class java.lang.Objectclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.vfs2.FileObjectgetPath, getURIMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
RESPONSE_CHARSETThe character set property name.
 
- 
- 
Constructor Details- 
Webdav4FileObjectprotected Webdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem) throws FileSystemException Constructs a new instance.- Parameters:
- name- file name.
- fileSystem- file system.
- Throws:
- FileSystemException- if any error occurs
 
- 
Webdav4FileObjectprotected Webdav4FileObject(AbstractFileName name, Webdav4FileSystem fileSystem, Webdav4FileSystemConfigBuilder builder) throws FileSystemException Constructs a new instance.- Parameters:
- name- file name.
- fileSystem- file system.
- builder- builds the file system configuration.
- Throws:
- FileSystemException- if any error occurs
 
 
- 
- 
Method Details- 
doCreateFolderCreates this file as a folder.- Overrides:
- doCreateFolderin class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doDeleteDeletes the file.- Overrides:
- doDeletein class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doGetAttributesReturns the properties of the Webdav resource.- Overrides:
- doGetAttributesin class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doGetContentSizeReturns the size of the file content (in bytes).- Overrides:
- doGetContentSizein class- Http4FileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doGetLastModifiedTimeReturns the last modified time of this file. Is only called ifdoGetType()does not returnFileType.IMAGINARY.- Overrides:
- doGetLastModifiedTimein class- Http4FileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doGetOutputStream- Overrides:
- doGetOutputStreamin class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doGetTypeDetermines the type of this file. Must not return null. The return value of this method is cached, so the implementation can be expensive.- Overrides:
- doGetTypein class- Http4FileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doIsWriteableDetermines if this file can be written to. Is only called ifdoGetType()does not returnFileType.IMAGINARY.This implementation always returns true. - Overrides:
- doIsWriteablein class- Http4FileObject<Webdav4FileSystem>
- Returns:
- true if the file is writable.
- Throws:
- Exception- if an error occurs.
 
- 
doListChildrenLists the children of the file.- Overrides:
- doListChildrenin class- Http4FileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doListChildrenResolvedLists the children of the file.- Overrides:
- doListChildrenResolvedin class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doRenameRename the file.- Overrides:
- doRenamein class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
doSetAttributeSets an attribute of this file. Is only called ifdoGetType()does not returnFileType.IMAGINARY.- Overrides:
- doSetAttributein class- AbstractFileObject<Webdav4FileSystem>
- Throws:
- Exception
 
- 
getFileContentInfoFactory- Overrides:
- getFileContentInfoFactoryin class- Http4FileObject<Webdav4FileSystem>
 
 
-