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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.