The Artima Developer Community
Sponsored Link

Java Buzz Forum
NIO.2 Cookbook, Part 2

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
News Manager

Posts: 47623
Nickname: newsman
Registered: Apr, 2003

News Manager is the force behind the news at Artima.com.
NIO.2 Cookbook, Part 2 Posted: Mar 19, 2015 8:25 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by News Manager.
Original Post: NIO.2 Cookbook, Part 2
Feed Title: JavaWorld
Feed URL: http://www.javaworld.com/index.rss
Feed Description: JavaWorld.com: Fueling Innovation
Latest Java Buzz Posts
Latest Java Buzz Posts by News Manager
Latest Posts From JavaWorld

Advertisement

My previous post launched a three-part series on NIO.2 recipes. I presented three recipes for copying files, deleting files and directories, and moving files. In this post, I present path-related recipes (such as obtaining paths and retrieving path information), file/directory-testing recipes (such as testing file/directory existence), and attribute-oriented recipes.

Obtaining Paths

Q: How do I obtain a java.nio.file.Path object?

A: You obtain a Path object, which locates a file or directory in a file system via a sequence of name elements, by calling either of the following static methods in the java.nio.file.Paths class:

To read this article in full or to leave a comment, please click here

Read: NIO.2 Cookbook, Part 2

Topic: Integrate traffic data into your route planner Previous Topic   Next Topic Topic: Apple TV: Apple Plans to Launch Low-Cost Web TV Service with 25 Channels in September

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use