F
- File representationpublic interface IWritableFileSystem<F> extends IBasicFileSystem<F>
IBasicFileSystem
that can be implemented to allow creation of files and folders.
For writable filesystems, the name of a file can be freely chosen, and:
- moving or copying a file to a folder probably will not change its name
- moving or copying a file to a folder can 'overwrite' a file already present in the folder
To accommodate these situations, for writable filesystems we support overwrite protection and rollover.
This requires that writeableFileSystem.getName() returns the name of the file in the directory, not the full name including the folder name.Modifier and Type | Method and Description |
---|---|
OutputStream |
appendFile(F f) |
OutputStream |
createFile(F f) |
F |
renameFile(F source,
F destination)
Renames the file to a new name, possibly in a another folder.
|
close, configure, copyFile, createFolder, deleteFile, exists, folderExists, getAdditionalFileProperties, getCanonicalName, getFileSize, getModificationTime, getName, getNumberOfFilesInFolder, getParentFolder, isOpen, listFiles, moveFile, open, readFile, removeFolder, toFile, toFile
getDomain, getPhysicalDestinationName
OutputStream createFile(F f) throws FileSystemException, IOException
FileSystemException
IOException
OutputStream appendFile(F f) throws FileSystemException, IOException
FileSystemException
IOException
F renameFile(F source, F destination) throws FileSystemException
FileSystemException
Copyright © 2023 Frank!Framework. All rights reserved.