Copyright
Brief Table of Contents
Table of Contents
Foreword
Preface
Acknowledgments
About this Book
About the Authors
About the Cover Illustration
1. Developing with Java 7
Chapter 1. Introducing Java 7
1.1. The language and the platform
1.2. Small is beautiful—Project Coin
1.3. The changes in Project Coin
1.3.1. Strings in switch
1.3.2. Enhanced syntax for numeric literals
1.3.3. Improved exception handling
1.3.4. Try-with-resources (TWR)
1.3.5. Diamond syntax
1.3.6. Simplified varargs method invocation
1.4. Summary
Chapter 2. New I/O
2.1. Java I/O—a history
2.1.1. Java 1.0 to 1.3
2.1.2. Java 1.4 and NIO
2.1.3. Introducing NIO.2
2.2. Path—a foundation of file-based I/O
2.2.1. Creating a Path
2.2.2. Retrieving information from a Path
2.2.3. Removing redundancies
2.2.4. Converting Paths
2.2.5. NIO.2 Path and Java’s existing File class
2.3. Dealing with directories and directory trees
2.3.1. Finding files in a directory
2.3.2. Walking the directory tree
2.4. Filesystem I/O with NIO.2
2.4.1. Creating and deleting files
2.4.2. Copying and moving files
2.4.3. File attributes
2.4.4. Reading and writing data quickly
2.4.5. File change notification
2.4.6. SeekableByteChannel
2.7. Summary