Skip to main content
  • 2309 Accesses

Abstract

Applications often interact with a file system, which is usually implemented as a hierarchy of files and directories starting from a root directory. Operating systems on which a Java virtual machine (JVM) runs typically support at least one file system. For example, Unix/Linux combines all mounted (attached and prepared) disks into one virtual file system. In contrast, Windows associates a separate file system with each active disk drive. Java offers access to the underlying operating system’s available file system(s) via its concrete java.io.File class, which this chapter explores.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Electronic Supplementary Material

Below is the link to the electronic supplementary material.

ch02 (zip 4 kb)

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Jeff Friesen

About this chapter

Cite this chapter

Friesen, J. (2015). File. In: Java I/O, NIO and NIO.2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1565-4_2

Download citation

Publish with us

Policies and ethics