< prev index next >

src/java.base/unix/classes/sun/nio/fs/UnixFileStore.java

Print this page




 243             String[] values = value.split("\\s");
 244             for (String s: values) {
 245                 s = s.trim().toLowerCase();
 246                 if (s.equals(feature)) {
 247                     return FeatureStatus.PRESENT;
 248                 }
 249                 if (s.startsWith("no")) {
 250                     s = s.substring(2);
 251                     if (s.equals(feature)) {
 252                         return FeatureStatus.NOT_PRESENT;
 253                     }
 254                 }
 255             }
 256         }
 257         return FeatureStatus.UNKNOWN;
 258     }
 259 
 260     private static Properties loadProperties() {
 261         Properties result = new Properties();
 262         String fstypes = System.getProperty("java.home") + "/lib/fstypes.properties";
 263         Path file = Paths.get(fstypes);
 264         try {
 265             try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
 266                 result.load(Channels.newReader(rbc, "UTF-8"));
 267             }
 268         } catch (IOException x) {
 269         }
 270         return result;
 271     }
 272 }


 243             String[] values = value.split("\\s");
 244             for (String s: values) {
 245                 s = s.trim().toLowerCase();
 246                 if (s.equals(feature)) {
 247                     return FeatureStatus.PRESENT;
 248                 }
 249                 if (s.startsWith("no")) {
 250                     s = s.substring(2);
 251                     if (s.equals(feature)) {
 252                         return FeatureStatus.NOT_PRESENT;
 253                     }
 254                 }
 255             }
 256         }
 257         return FeatureStatus.UNKNOWN;
 258     }
 259 
 260     private static Properties loadProperties() {
 261         Properties result = new Properties();
 262         String fstypes = System.getProperty("java.home") + "/lib/fstypes.properties";
 263         Path file = Path.get(fstypes);
 264         try {
 265             try (ReadableByteChannel rbc = Files.newByteChannel(file)) {
 266                 result.load(Channels.newReader(rbc, "UTF-8"));
 267             }
 268         } catch (IOException x) {
 269         }
 270         return result;
 271     }
 272 }
< prev index next >