First book to market on Java NIO.2 First Java NIO book using Java 7 Java continues to be one of the top programming languages in use today with over several million developers. Title Page -- Copyright Page -- Contents at a Glance -- Table of Contents...
mehr
First book to market on Java NIO.2 First Java NIO book using Java 7 Java continues to be one of the top programming languages in use today with over several million developers. 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 Name -- Get 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.