Package org.aoju.bus.core.io
Interface FileSystem
public interface FileSystem
访问分层数据存储上的读写文件 大多数调用者应该使用
SYSTEM
实现,它使用主机的本地文件系统 备用
实现可用于注入错误(用于测试)或转换存储的数据(用于添加)
例如加密)- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Method Summary
-
Field Details
-
SYSTEM
-
-
Method Details
-
source
- Throws:
FileNotFoundException
-
sink
- Throws:
FileNotFoundException
-
appendingSink
- Throws:
FileNotFoundException
-
delete
- Throws:
IOException
-
exists
-
size
-
rename
- Throws:
IOException
-
deleteContents
- Throws:
IOException
-