| 1 | /* |
| 2 | * Licensed to the Apache Software Foundation (ASF) under one |
| 3 | * or more contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. The ASF licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * https://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | |
| 20 | /** |
| 21 | * This package provides stream classes for reading archives using the Unix DUMP format. |
| 22 | * <p> |
| 23 | * This format is similar to (and contemporary with) TAR but reads the raw filesystem directly. This means that writers are filesystem-specific even though the |
| 24 | * created archives are filesystem-agnostic. |
| 25 | * </p> |
| 26 | * |
| 27 | * <p> |
| 28 | * Unlike other formats DUMP offers clean support for sparse files, extended attributes, and other file metadata. In addition DUMP supports incremental dump |
| 29 | * files can capture (most) file deletion. It also provides a native form of compression and will soon support native encryption as well. |
| 30 | * </p> |
| 31 | * <p> |
| 32 | * In practice TAR archives are used for both distribution and backups. DUMP archives are used exclusively for backups. |
| 33 | * </p> |
| 34 | * <p> |
| 35 | * Like any 30+-year-old application there are a number of variants. For pragmatic reasons we will only support archives with the 'new' tape header and inode |
| 36 | * formats. Other restrictions: |
| 37 | * </p> |
| 38 | * <ul> |
| 39 | * <li>We only support ZLIB compression. The format also permits LZO and BZLIB compression.</li> |
| 40 | * <li>Sparse files will have the holes filled.</li> |
| 41 | * <li>MacOS finder and resource streams are ignored.</li> |
| 42 | * <li>Extended attributes are not currently provided.</li> |
| 43 | * <li>SELinux labels are not currently provided.</li> |
| 44 | * </ul> |
| 45 | * <p> |
| 46 | * As of Apache Commons Compress 1.3 support for the dump format is read-only. |
| 47 | * </p> |
| 48 | */ |
| 49 | package org.apache.commons.compress.archivers.dump; |