Files are contained within a file system
- Has a default file system
- Specialized file systems are supported
- Example: Zip file system
- Path instances are tied to a file system
- Paths class works only for default
常用class
FileSystem
- Represents an individual file system
- Factory for Path instances
FileSystems
- Static FileSystem factory methods
- Open or create a file system
- newFileSystem
File systems idenfified by URIs
- Specifics of URI vary greatly
- Zip file system uses “jar:file” scheme
- jar:file:/jimwilson/data/bar.zip
File system support custom properties
- Different for each file system type
- Examples:
- Whether to create if doesn’t exist
- String encoding