public class FileSystemUtil extends Object
FileSystem相关工具类封装| Constructor and Description |
|---|
FileSystemUtil() |
| Modifier and Type | Method and Description |
|---|---|
static FileSystem |
createZip(String path)
创建 Zip的
FileSystem,默认UTF-8编码 |
static FileSystem |
createZip(String path,
Charset charset)
创建 Zip的
FileSystem |
static Path |
getRoot(FileSystem fileSystem)
获取目录的根路径,或Zip文件中的根路径
|
static FileSystem |
of(String path)
创建
FileSystem |
public static FileSystem of(String path)
FileSystempath - 文件路径,可以是目录或Zip文件等FileSystempublic static FileSystem createZip(String path)
FileSystem,默认UTF-8编码path - 文件路径,可以是目录或Zip文件等FileSystempublic static FileSystem createZip(String path, Charset charset)
FileSystempath - 文件路径,可以是目录或Zip文件等charset - 编码FileSystempublic static Path getRoot(FileSystem fileSystem)
fileSystem - FileSystemPathCopyright © 2025. All rights reserved.