Dependencies between classe of NIO2
Rémi Forax
forax at univ-mlv.fr
Sat Jun 19 05:04:02 PDT 2010
It seems that Path as lot of dependencies.
Path path = Paths.get(".");
System.out.println(path.getName());
I wonder if some of them can be removed.
$java -verbose:class NioFileTest
...
[Loaded java.nio.file.Paths from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.FileSystems from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.FileSystems$DefaultFileSystemHolder from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.FileSystems$DefaultFileSystemHolder$1 from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.DefaultFileSystemProvider from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.DefaultFileSystemProvider$1 from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.spi.FileSystemProvider from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixFileSystemProvider from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.LinuxFileSystemProvider from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.FileSystem from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixFileSystem from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.LinuxFileSystem from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.attribute.UserPrincipalLookupService from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixFileSystem$4 from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.FileRef from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.Watchable from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.Path from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.AbstractPath from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixPath from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.DirectoryStream$Filter from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.AbstractPath$1 from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.WatchEvent$Modifier from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixNativeDispatcher from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixNativeDispatcher$1 from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.attribute.BasicFileAttributes from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.nio.file.attribute.PosixFileAttributes from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixFileAttributes from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixFileStoreAttributes from
/usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.UnixMountEntry from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded sun.nio.fs.Util from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.net.URI from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
[Loaded java.net.URI$Parser from /usr/jdk/jdk1.7.0/jre/lib/rt.jar]
Rémi
More information about the nio-dev
mailing list