Creating Path Objects
You’ll use class static
method get of class Paths
to convert a String
representing a file’s or directory’s location into a Path
object. You can then use the methods of interface Path
and class Files
to determine information about the specified file or directory. We discuss several such methods momentarily. For complete lists of their methods, visit:
http://docs.oracle.com/javase/7/docs/api/java/nio/file/Path.htmlhttp://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.