CHAPTER 8

image

Working with Archive Files

In this chapter, you will learn

  • What archive files are
  • What data compression is and how to compress and decompress data
  • How to compute checksum for data using different algorithms
  • How to create files in ZIP, GZIP, and JAR file formats and read data from them
  • How to use the jar command-line tool to work with JAR files

What Is an Archive File?

An archive file consists of one or more files. It also contains metadata that may include the directory structure of the files, comments, error detection and recovery information, etc. An archive file may also be encrypted. Typically, but not necessarily, an archive ...

Get Beginning Java 8 Language Features: Lambda Expressions, Inner Classes, Th reads, I/O, Collections,and Streams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.