Pro Java 7 NIO.2 [electronic resource] /
Leonard, Anghel.author.
Pro Java 7 NIO.2 addresses the three primary elements that offer new input/output (I/O) APIs in Java 7, giving you the skills to write robust, scalable Java applications: An extensive file I/O API system addresses feature requests that developers have sought since the inception of the JDK A socket channel API addresses multicasting, socket binding associated with channels, and related issues An asynchronous I/O API enables mapping to I/O facilities, completion ports, and various I/O event port mechanisms to enhance scalability NIO.2 for the Java platform, known as JSR 203, is a major feature of the new Java JDK 7 under the leadership of Alan Bateman as an OpenJDK project. Take advantage of these exciting new developments with Pro Java 7 NIO.2.
Title Page; Copyright Page; Contents at a Glance; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Preface; Who This Book Is For; What This Book Covers; CHAPTER 1 Working with the Path Class; Introducing the Path Class; Defining a Path; Define an Absolute Path; Define a Path Relative to the File Store Root; Define a Path Relative to the Working Folder; Define a Path Using Shortcuts; Define a Path from a URI; Define a Path using FileSystems.getDefault().getPath() Method; Get the Path of the Home Directory; Getting Information About a Path
Get the Path File/Directory NameGet the Path Root; Get the Path Parent; Get Path Name Elements; Get a Path Subpath; Converting a Path; Convert a Path to a String; Convert a Path to a URI; Convert a Relative Path to an Absolute Path; Convert a Path to a Real Path; Convert a Path to a File; Combining Two Paths; Constructing a Path Between Two Locations; Comparing Two Paths; Iterate over the Name Elements of a Path; Summary; CHAPTER 2 Metadata File Attributes; Supported Views in NIO.2; Determining Views Supported by a Particular File System; Basic View; Get Bulk Attributes with readAttributes()
Get a Single Attribute with getAttribute()Update a Basic Attribute; DOS View; File Owner View; Set a File Owner Using Files.setOwner(); Set a File Owner Using FileOwnerAttributeView.setOwner(); Set a File Owner Using Files.setAttribute(); Get a File Owner Using FileOwnerAttributeView.getOwner(); Get a File Owner Using Files.getAttribute(); POSIX View; POSIX Permissions; POSIX Group Owner; ACL View; Read an ACL Using Files.getFileAttributeView(); Read an ACL Using Files.getAttribute(); Read ACL Entries; Grant a New Access in an ACL; File Store Attributes; Get Attributes of All File Stores
Get Attributes of the File Store in Which a File ResidesUser-Defined File Attributes View; Check User-Defined Attributes Supportability; Operations on User-Defined Attributes; Define a User Attribute; List User-Defined Attribute Names and Value Sizes; Get the Value of a User-Defined Attribute; Delete a File's User-Defined Attribute; Summary; CHAPTER 3 Manage Symbolic and Hard Links; Introducing Links; Creating Links from the Command Line; Creating a Symbolic Link; Creating a Hard Link; Checking a Symbolic Link; Locating the Target of a Link
Checking If a Link and a Target Point to the Same FileSummary; CHAPTER 4 Files and Directories; Checking Methods for Files and Directories; Checking for the Existence of a File or Directory; Checking File Accessibility; Checking If Two Paths Point to the Same File; Checking the File Visibility; Creating and Reading Directories; Listing File System Root Directories; Creating a New Directory; Listing a Directory's Content; Listing the Entire Content; Listing the Content by Applying a Glob Pattern; Listing the Content by Applying a User-Defined Filter; Creating, Reading, and Writing Files
Using Standard Open Options
Includes index.
Includes index.
Pro Java 7 NIO.2 addresses the three primary elements that offer new input/output (I/O) APIs in Java 7, giving you the skills to write robust, scalable Java applications: An extensive file I/O API system addresses feature requests that developers have sought since the inception of the JDK A socket channel API addresses multicasting, socket binding associated with channels, and related issues An asynchronous I/O API enables mapping to I/O facilities, completion ports, and various I/O event port mechanisms to enhance scalability NIO.2 for the Java platform, known as JSR 203, is a major feature of the new Java JDK 7 under the leadership of Alan Bateman as an OpenJDK project. Take advantage of these exciting new developments with Pro Java 7 NIO.2.
Java (Computer program language).
Software engineering.
Java.
Software Engineering/Programming and Operating Systems.