O'Reilly logo

Java 7 New Features Cookbook by Jennifer L. Reese, Richard M. Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3. Obtaining File and Directory Information

In this chapter, we will cover the following:

  • Determining the file content type

  • Obtaining a single attribute at a time using the getAttribute method

  • Obtaining a map of file attributes

  • Getting file and directory information

  • Determining operating system support for attribute views

  • Maintaining basic file attributes using the BasicFileAttributeView

  • Maintaining POSIX file attributes using the PosixFileAttributeView

  • Maintaining FAT table attributes using the DosFileAttributeView

  • Maintaining file ownership attributes using the FileOwnerAttributeView

  • Maintaining a file's ACL using the AclFileAttributeView

  • Maintaining user-defined file attributes using the UserDefinedFileAttributeView

Introduction

Many applications ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required