public abstract class ArchiverFactory extends Object implements Serializable
Archiver
on top of a stream.Modifier and Type | Field and Description |
---|---|
static ArchiverFactory |
TAR
Uncompressed tar format.
|
static ArchiverFactory |
TARGZ
tar+gz
|
static ArchiverFactory |
ZIP
Zip format.
|
Constructor and Description |
---|
ArchiverFactory() |
Modifier and Type | Method and Description |
---|---|
abstract Archiver |
create(OutputStream out)
Creates an archiver on top of the given stream.
|
static ArchiverFactory |
createZipWithoutSymlink(String prefix)
Zip format, without following symlinks.
|
public static ArchiverFactory TAR
public static ArchiverFactory TARGZ
public static ArchiverFactory ZIP
public abstract Archiver create(OutputStream out) throws IOException
IOException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static ArchiverFactory createZipWithoutSymlink(String prefix)
prefix
- The portion of file path that will be added at the beginning of the relative path inside the archive.
If non-empty, a trailing forward slash will be enforced.Copyright © 2004–2021. All rights reserved.