- java.lang.Object
-
- com.sshtools.vfs.ext.MutableDecoratedFileObject
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Comparable<org.apache.commons.vfs2.FileObject>,Iterable<org.apache.commons.vfs2.FileObject>,org.apache.commons.vfs2.FileObject
public class MutableDecoratedFileObject extends Object implements org.apache.commons.vfs2.FileObject
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.vfs2.FileObjectdecoratedFileObject
-
Constructor Summary
Constructors Constructor Description MutableDecoratedFileObject()MutableDecoratedFileObject(org.apache.commons.vfs2.FileObject decoratedFileObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanRenameTo(org.apache.commons.vfs2.FileObject newfile)voidclose()intcompareTo(org.apache.commons.vfs2.FileObject fo)voidcopyFrom(org.apache.commons.vfs2.FileObject srcFile, org.apache.commons.vfs2.FileSelector selector)voidcreateFile()voidcreateFolder()booleandelete()intdelete(org.apache.commons.vfs2.FileSelector selector)intdeleteAll()booleanequals(Object obj)booleanexists()org.apache.commons.vfs2.FileObject[]findFiles(org.apache.commons.vfs2.FileSelector selector)voidfindFiles(org.apache.commons.vfs2.FileSelector selector, boolean depthwise, List<org.apache.commons.vfs2.FileObject> selected)org.apache.commons.vfs2.FileObjectgetChild(String name)org.apache.commons.vfs2.FileObject[]getChildren()org.apache.commons.vfs2.FileContentgetContent()org.apache.commons.vfs2.FileObjectgetDecoratedFileObject()org.apache.commons.vfs2.operations.FileOperationsgetFileOperations()org.apache.commons.vfs2.FileSystemgetFileSystem()org.apache.commons.vfs2.FileNamegetName()org.apache.commons.vfs2.FileObjectgetParent()StringgetPublicURIString()org.apache.commons.vfs2.FileTypegetType()URLgetURL()inthashCode()booleanisAttached()booleanisContentOpen()booleanisExecutable()booleanisFile()booleanisFolder()booleanisHidden()booleanisReadable()booleanisWriteable()Iterator<org.apache.commons.vfs2.FileObject>iterator()voidmoveTo(org.apache.commons.vfs2.FileObject destFile)voidrefresh()org.apache.commons.vfs2.FileObjectresolveFile(String path)org.apache.commons.vfs2.FileObjectresolveFile(String name, org.apache.commons.vfs2.NameScope scope)booleansetExecutable(boolean executable, boolean ownerOnly)booleansetReadable(boolean readable, boolean ownerOnly)booleansetWritable(boolean writable, boolean ownerOnly)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
canRenameTo
public boolean canRenameTo(org.apache.commons.vfs2.FileObject newfile)
- Specified by:
canRenameToin interfaceorg.apache.commons.vfs2.FileObject
-
close
public void close() throws org.apache.commons.vfs2.FileSystemException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
compareTo
public int compareTo(org.apache.commons.vfs2.FileObject fo)
- Specified by:
compareToin interfaceComparable<org.apache.commons.vfs2.FileObject>
-
copyFrom
public void copyFrom(org.apache.commons.vfs2.FileObject srcFile, org.apache.commons.vfs2.FileSelector selector) throws org.apache.commons.vfs2.FileSystemException- Specified by:
copyFromin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
createFile
public void createFile() throws org.apache.commons.vfs2.FileSystemException- Specified by:
createFilein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
createFolder
public void createFolder() throws org.apache.commons.vfs2.FileSystemException- Specified by:
createFolderin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
delete
public boolean delete() throws org.apache.commons.vfs2.FileSystemException- Specified by:
deletein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
delete
public int delete(org.apache.commons.vfs2.FileSelector selector) throws org.apache.commons.vfs2.FileSystemException- Specified by:
deletein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
deleteAll
public int deleteAll() throws org.apache.commons.vfs2.FileSystemException- Specified by:
deleteAllin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
exists
public boolean exists() throws org.apache.commons.vfs2.FileSystemException- Specified by:
existsin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
findFiles
public org.apache.commons.vfs2.FileObject[] findFiles(org.apache.commons.vfs2.FileSelector selector) throws org.apache.commons.vfs2.FileSystemException- Specified by:
findFilesin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
findFiles
public void findFiles(org.apache.commons.vfs2.FileSelector selector, boolean depthwise, List<org.apache.commons.vfs2.FileObject> selected) throws org.apache.commons.vfs2.FileSystemException- Specified by:
findFilesin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getChild
public org.apache.commons.vfs2.FileObject getChild(String name) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getChildin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getChildren
public org.apache.commons.vfs2.FileObject[] getChildren() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getChildrenin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getContent
public org.apache.commons.vfs2.FileContent getContent() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getContentin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getDecoratedFileObject
public org.apache.commons.vfs2.FileObject getDecoratedFileObject()
-
getFileOperations
public org.apache.commons.vfs2.operations.FileOperations getFileOperations() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getFileOperationsin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getFileSystem
public org.apache.commons.vfs2.FileSystem getFileSystem()
- Specified by:
getFileSystemin interfaceorg.apache.commons.vfs2.FileObject
-
getPublicURIString
public String getPublicURIString()
- Specified by:
getPublicURIStringin interfaceorg.apache.commons.vfs2.FileObject
-
getName
public org.apache.commons.vfs2.FileName getName()
- Specified by:
getNamein interfaceorg.apache.commons.vfs2.FileObject
-
getParent
public org.apache.commons.vfs2.FileObject getParent() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getParentin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getType
public org.apache.commons.vfs2.FileType getType() throws org.apache.commons.vfs2.FileSystemException- Specified by:
getTypein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
getURL
public URL getURL() throws org.apache.commons.vfs2.FileSystemException
- Specified by:
getURLin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isAttached
public boolean isAttached()
- Specified by:
isAttachedin interfaceorg.apache.commons.vfs2.FileObject
-
isContentOpen
public boolean isContentOpen()
- Specified by:
isContentOpenin interfaceorg.apache.commons.vfs2.FileObject
-
isExecutable
public boolean isExecutable() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isExecutablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isFile
public boolean isFile() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isFilein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isFolder
public boolean isFolder() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isFolderin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isHidden
public boolean isHidden() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isHiddenin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isReadable
public boolean isReadable() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isReadablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
isWriteable
public boolean isWriteable() throws org.apache.commons.vfs2.FileSystemException- Specified by:
isWriteablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
iterator
public Iterator<org.apache.commons.vfs2.FileObject> iterator()
-
moveTo
public void moveTo(org.apache.commons.vfs2.FileObject destFile) throws org.apache.commons.vfs2.FileSystemException- Specified by:
moveToin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
refresh
public void refresh() throws org.apache.commons.vfs2.FileSystemException- Specified by:
refreshin interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
resolveFile
public org.apache.commons.vfs2.FileObject resolveFile(String path) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
resolveFilein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
resolveFile
public org.apache.commons.vfs2.FileObject resolveFile(String name, org.apache.commons.vfs2.NameScope scope) throws org.apache.commons.vfs2.FileSystemException
- Specified by:
resolveFilein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
setExecutable
public boolean setExecutable(boolean executable, boolean ownerOnly) throws org.apache.commons.vfs2.FileSystemException- Specified by:
setExecutablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
setReadable
public boolean setReadable(boolean readable, boolean ownerOnly) throws org.apache.commons.vfs2.FileSystemException- Specified by:
setReadablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
setWritable
public boolean setWritable(boolean writable, boolean ownerOnly) throws org.apache.commons.vfs2.FileSystemException- Specified by:
setWritablein interfaceorg.apache.commons.vfs2.FileObject- Throws:
org.apache.commons.vfs2.FileSystemException
-
-