Package de.espirit.firstspirit.io
Interface FileSystem<T extends FileHandle>
- All Superinterfaces:
AutoCloseable
,Closeable
Interface representing a filesystem and providing means to operate on file handles.
- Since:
- 4.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Path separator String.static final char
Path separator char. -
Method Summary
-
Field Details
-
SEPARATOR
Path separator String.- Since:
- 4.0
- See Also:
-
SEPARATOR_CHAR
static final char SEPARATOR_CHARPath separator char.- Since:
- 4.0
-
-
Method Details
-
obtain
Obtain a handle to the file or directory with the given path.If the given path is
null
or empty, the handle of the current working directory is returned.- Parameters:
path
- The path to the file or directory.- Returns:
- A FileHandle.
- Throws:
IOException
- Since:
- 4.0
-
close
Close file system.
Releases any resources associated with this file system. Do not use the file system after calling this method.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
- Since:
- 4.0
-