/** All filesystems that are capable of this capability. * @return enumeration of FileSystems that satifies this capability * @deprecated Please use the <a href="@org-netbeans-api-java-classpath@/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead. */ @Deprecated public Enumeration<? extends FileSystem> fileSystems() { class FFS implements org.openide.util.Enumerations.Processor<FileSystem, FileSystem> { @Deprecated public FileSystem process(FileSystem fs, Collection<FileSystem> ignore) { return fs.getCapability().capableOf(FileSystemCapability.this) ? fs : null; } } return org.openide.util.Enumerations.filter(Repository.getDefault().fileSystems(), new FFS()); }
/** Getter for default filesystem to create objects on. * @return the first non hidden filesystem or null if none */ final FileSystem getEnabledSystem () { // search for a filesystem Enumeration en = Repository.getDefault().fileSystems(); while (en.hasMoreElements()) { FileSystem fs = (FileSystem)en.nextElement(); if (!fs.isHidden()) { // found first non hidden filesystem return fs; } } return null; }
/** All filesystems that are capable of this capability. * @return enumeration of FileSystems that satifies this capability * @deprecated Please use the <a href="@org-netbeans-api-java-classpath@/org/netbeans/api/java/classpath/ClassPath.html">ClassPath API</a> instead. */ @Deprecated public Enumeration<? extends FileSystem> fileSystems() { class FFS implements org.openide.util.Enumerations.Processor<FileSystem, FileSystem> { @Deprecated public FileSystem process(FileSystem fs, Collection<FileSystem> ignore) { return FileSystemCompat.compat(fs).getCapability(). capableOf(FileSystemCapability.this) ? fs : null; } } return org.openide.util.Enumerations.filter(Repository.getDefault().fileSystems(), new FFS()); }
/** All filesystems that are capable of this capability. * @return enumeration of FileSystems that satifies this capability * @deprecated Please use the <a href="@JAVA/API@/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. */ public Enumeration fileSystems () { class FFS implements org.openide.util.Enumerations.Processor { public Object process (Object obj, Collection ignore) { FileSystem fs = (FileSystem)obj; return fs.getCapability().capableOf(FileSystemCapability.this) ? fs : null; } } return org.openide.util.Enumerations.filter ( ExternalUtil.getRepository ().fileSystems (), new FFS () ); }
/** All filesystems that are capable of this capability. * @return enumeration of FileSystems that satifies this capability * @deprecated Please use the <a href="@JAVA/API@/org/netbeans/api/java/classpath/api.html">ClassPath API</a> instead. */ public Enumeration fileSystems () { class FFS implements org.openide.util.Enumerations.Processor { public Object process (Object obj, Collection ignore) { FileSystem fs = (FileSystem)obj; return fs.getCapability().capableOf(FileSystemCapability.this) ? fs : null; } } return org.openide.util.Enumerations.filter ( ExternalUtil.getRepository ().fileSystems (), new FFS () ); }