java.nio.file.FileStore#toString ( )源码实例Demo

下面列出了java.nio.file.FileStore#toString ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: Elasticsearch   文件: ESFileStore.java
private static String getMountPointLinux(FileStore store) {
    String desc = store.toString();
    int index = desc.lastIndexOf(" (");
    if (index != -1) {
        return desc.substring(0, index);
    } else {
        return desc;
    }
}
 
源代码2 项目: lucene-solr   文件: IOUtils.java
static String getMountPoint(FileStore store) {
  String desc = store.toString();
  int index = desc.lastIndexOf(" (");
  if (index != -1) {
    return desc.substring(0, index);
  } else {
    return desc;
  }
}
 
源代码3 项目: crate   文件: ESFileStore.java
private static String getMountPointLinux(final FileStore store) {
    String desc = store.toString();
    int index = desc.lastIndexOf(" (");
    if (index != -1) {
        return desc.substring(0, index);
    } else {
        return desc;
    }
}