Class DetachedFile
java.lang.Object
net.thevpc.common.vfs.impl.DetachedFile
- All Implemented Interfaces:
VFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidcopyTo(VFile outFile, VFileFilter filter) voiddelete()voidbooleanexists()VFile[]find(String path, VFileFilter filter) getACL()getBaseFile(String vfsId) longlonggetName()getOutputStream(boolean append) getPath()booleanisAllowedCreateChild(VFileType type, String user) booleanisAllowedList(String user) booleanisAllowedRead(String user) booleanisAllowedRemove(String user) booleanisAllowedRemoveChild(VFileType type, String user) booleanisAllowedUpdateChild(VFileType type, String user) booleanisAllowedWrite(String user) booleanbooleanbooleanisExists()booleanisFile()booleanisParentOf(String path) longlonglength()VFile[]VFile[]listFiles(VFileFilter fileFilter) booleanmkdirs()probeContentType(boolean bestEffort) byte[]voidvoidsetAcl(VirtualFileACL acl) voidsetExists(boolean exists) voidsetFileType(VFileType fileType) voidsetInputSupplier(Supplier<InputStream> inputSupplier) voidsetLastModified(long lastModified) voidsetLength(long length) voidvoidsetOutputSupplier(Function<Boolean, OutputStream> outputSupplier) voidtoString()voidvisit(String path, VFileVisitor visitor, VFileFilter filter) voidvisit(VFileVisitor visitor, VFileFilter filter) voidwriteBytes(byte[] bytes)
-
Constructor Details
-
DetachedFile
-
-
Method Details
-
getName
-
getPath
-
getParentPath
- Specified by:
getParentPathin interfaceVFile
-
getParentFile
- Specified by:
getParentFilein interfaceVFile
-
isFile
-
isDirectory
public boolean isDirectory()- Specified by:
isDirectoryin interfaceVFile
-
getFileType
- Specified by:
getFileTypein interfaceVFile
-
listFiles
-
mkdirs
-
delete
- Specified by:
deletein interfaceVFile- Throws:
IOException
-
deleteAll
- Specified by:
deleteAllin interfaceVFile- Throws:
IOException
-
getInputStream
- Specified by:
getInputStreamin interfaceVFile- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceVFile- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStreamin interfaceVFile- Throws:
IOException
-
listFiles
-
get
-
length
-
getLength
public long getLength() -
setLength
public void setLength(long length) -
lastModified
public long lastModified()- Specified by:
lastModifiedin interfaceVFile
-
getFileSystem
- Specified by:
getFileSystemin interfaceVFile
-
exists
-
isExists
public boolean isExists() -
setExists
public void setExists(boolean exists) -
renameTo
- Specified by:
renameToin interfaceVFile- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVFile- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVFile- Throws:
IOException
-
copyFrom
- Specified by:
copyFromin interfaceVFile- Throws:
IOException
-
copyTo
- Specified by:
copyToin interfaceVFile- Throws:
IOException
-
isParentOf
- Specified by:
isParentOfin interfaceVFile
-
isChildOf
-
visit
-
visit
-
find
-
readBytes
- Specified by:
readBytesin interfaceVFile- Throws:
IOException
-
writeBytes
- Specified by:
writeBytesin interfaceVFile- Throws:
IOException
-
probeContentType
- Specified by:
probeContentTypein interfaceVFile- Throws:
IOException
-
probeContentType
- Specified by:
probeContentTypein interfaceVFile- Throws:
IOException
-
toString
-
getFileName
- Specified by:
getFileNamein interfaceVFile
-
getACL
-
getBaseFile
- Specified by:
getBaseFilein interfaceVFile
-
isAllowedCreateChild
- Specified by:
isAllowedCreateChildin interfaceVFile
-
isAllowedRemoveChild
- Specified by:
isAllowedRemoveChildin interfaceVFile
-
isAllowedUpdateChild
- Specified by:
isAllowedUpdateChildin interfaceVFile
-
isAllowedList
- Specified by:
isAllowedListin interfaceVFile
-
isAllowedRemove
- Specified by:
isAllowedRemovein interfaceVFile
-
isAllowedRead
- Specified by:
isAllowedReadin interfaceVFile
-
isAllowedWrite
- Specified by:
isAllowedWritein interfaceVFile
-
copyToNativeTempFile
- Specified by:
copyToNativeTempFilein interfaceVFile- Throws:
IOException
-
getInputSupplier
-
setInputSupplier
-
getOutputSupplier
-
setOutputSupplier
-
setFileType
-
setName
-
setPath
-
setAcl
-
getLastModified
public long getLastModified() -
setLastModified
public void setLastModified(long lastModified)
-