Package com.mku.file
Interface IVirtualFile
- All Known Implementing Classes:
SalmonFile
public interface IVirtualFile
-
Method Summary
Modifier and TypeMethodDescriptioncopy
(IVirtualFile dir, BiConsumer<Long, Long> OnProgressListener) void
copyRecursively
(IVirtualFile dest, TriConsumer<IVirtualFile, Long, Long> progressListener, Function<IVirtualFile, String> autoRename, boolean autoRenameFolders, BiConsumer<IVirtualFile, Exception> onFailed) createDirectory
(String dirName) createFile
(String realFilename) void
delete()
void
deleteRecursively
(TriConsumer<IVirtualFile, Long, Long> progressListener, BiConsumer<IVirtualFile, Exception> onFailed) boolean
exists()
long
getPath()
long
getSize()
boolean
boolean
isFile()
void
mkdir()
move
(IVirtualFile dir, BiConsumer<Long, Long> OnProgressListener) void
moveRecursively
(IVirtualFile dest, TriConsumer<IVirtualFile, Long, Long> progressListener, Function<IVirtualFile, String> autoRename, boolean autoRenameFolders, BiConsumer<IVirtualFile, Exception> onFailed) void
-
Method Details
-
getInputStream
- Throws:
IOException
-
getOutputStream
- Throws:
IOException
-
listFiles
IVirtualFile[] listFiles() -
getChild
- Throws:
IOException
-
isFile
boolean isFile() -
isDirectory
boolean isDirectory() -
getPath
- Throws:
IOException
-
getRealPath
String getRealPath() -
getRealFile
IRealFile getRealFile() -
getBaseName
- Throws:
IOException
-
getParent
IVirtualFile getParent() -
delete
void delete() -
mkdir
void mkdir() -
getLastDateTimeModified
long getLastDateTimeModified() -
getSize
- Throws:
IOException
-
exists
boolean exists() -
createDirectory
- Throws:
IOException
-
createFile
- Throws:
IOException
-
rename
- Throws:
IOException
-
move
- Throws:
IOException
-
copy
- Throws:
IOException
-
moveRecursively
void moveRecursively(IVirtualFile dest, TriConsumer<IVirtualFile, Long, throws IOExceptionLong> progressListener, Function<IVirtualFile, String> autoRename, boolean autoRenameFolders, BiConsumer<IVirtualFile, Exception> onFailed) - Throws:
IOException
-
copyRecursively
void copyRecursively(IVirtualFile dest, TriConsumer<IVirtualFile, Long, throws IOExceptionLong> progressListener, Function<IVirtualFile, String> autoRename, boolean autoRenameFolders, BiConsumer<IVirtualFile, Exception> onFailed) - Throws:
IOException
-
deleteRecursively
void deleteRecursively(TriConsumer<IVirtualFile, Long, Long> progressListener, BiConsumer<IVirtualFile, Exception> onFailed)
-