Module de.codecamp.messages.shared
Class NioFileSystemAdapter
java.lang.Object
de.codecamp.messages.shared.bundle.NioFileSystemAdapter
- All Implemented Interfaces:
FileSystemAdapter<Path,Path>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateParentDirectories(Path file) voiddeleteIfExists(Path file) booleangetDirectory(String directoryPath) getDisplayPath(Path dir, Path file) getFileName(Path file) getRelativeFilePath(Path dir, Path file) newInputStream(Path file) newOutputStream(Path file)
-
Constructor Details
-
NioFileSystemAdapter
public NioFileSystemAdapter()
-
-
Method Details
-
getDirectory
- Specified by:
getDirectoryin interfaceFileSystemAdapter<Path,Path>
-
listFiles
- Specified by:
listFilesin interfaceFileSystemAdapter<Path,Path> - Throws:
IOException
-
getFile
- Specified by:
getFilein interfaceFileSystemAdapter<Path,Path>
-
getFileName
- Specified by:
getFileNamein interfaceFileSystemAdapter<Path,Path>
-
getRelativeFilePath
- Specified by:
getRelativeFilePathin interfaceFileSystemAdapter<Path,Path>
-
getDisplayPath
- Specified by:
getDisplayPathin interfaceFileSystemAdapter<Path,Path>
-
exists
- Specified by:
existsin interfaceFileSystemAdapter<Path,Path>
-
createParentDirectories
- Specified by:
createParentDirectoriesin interfaceFileSystemAdapter<Path,Path> - Throws:
IOException
-
deleteIfExists
- Specified by:
deleteIfExistsin interfaceFileSystemAdapter<Path,Path> - Throws:
IOException
-
newInputStream
- Specified by:
newInputStreamin interfaceFileSystemAdapter<Path,Path> - Throws:
IOException
-
newOutputStream
- Specified by:
newOutputStreamin interfaceFileSystemAdapter<Path,Path> - Throws:
IOException
-