---------------------------------
FileStore |
---------------------------------
# ´ú±íÒ»¿é¶ù´ÅÅÌ·ÖÇø
# ¹¹Ôì
1,´Ó Files ʵÀý»ñÈ¡,½ö½ö»ñȡָ¶¨µÄ
FileStore getFileStore(Path path);
2,´Ó FileSystem ¾²Ì¬·½·¨»ñÈ¡,»ñÈ¡µÄÊÇËùÓÐ
Iterable getFileStores();
---------------------------------
FileStore-·½·¨ |
---------------------------------
Object getAttribute(String attribute);
# »ñȡָ¶¨Ãû³ÆµÄÊôÐÔÖµ
boolean supportsFileAttributeView(String name)
# ÊÇ·ñÖ§³ÖÖ¸¶¨Ãû³ÆµÄÊôÐÔ
boolean supportsFileAttributeView(Class extends FileAttributeView> type)
# ÊÇ·ñÖ§³ÖÖ¸¶¨ÀàÐÍ/×Ô¶¨ÒåµÄÊôÐÔ
long getUnallocatedSpace()
# »ñȡδ·ÖÅäµÄ×Ö½Ú´óС
long getUsableSpace()
# »ñÈ¡ÒѾ·ÖÅäµÄ×Ö½Ú´óС
long getTotalSpace()
# »ñÈ¡·ÖÇøµÄ×Ü´óС
boolean isReadOnly()
# ÊÇ·ñÊÇÖ»¶ÁµÄ
String type();
# »ñÈ¡·ÖÇøÀàÐÍ
String name();
# »ñÈ¡·ÖÇøÃû³Æ
FileStoreAttributeView getFileStoreAttributeView(Class type);
# »ñÈ¡ÊôÐÔ¶ÔÏó