public enum ArchiveFormat extends Enum<ArchiveFormat>
archives
may be streamed in.
Individual SCMs may support additional formats, but any SCM which advertizes the archive
feature
is required to support all of these formats. Using any other format requires referencing the SCM
directly.
Enum Constant and Description |
---|
TAR
Streams the archive as an uncompressed tarball.
|
TAR_GZ
Streams the archive as a GZip-compressed tarball.
|
ZIP
Streams the archive as a zip file, using the default compression level for the SCM.
|
Modifier and Type | Method and Description |
---|---|
static ArchiveFormat |
fromExtension(String extension)
Searches for the format which produces the provided
extension , case-insensitively. |
String |
getDefaultExtension() |
Set<String> |
getExtensions() |
static ArchiveFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ArchiveFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArchiveFormat TAR
public static final ArchiveFormat TAR_GZ
public static final ArchiveFormat ZIP
public static ArchiveFormat[] values()
for (ArchiveFormat c : ArchiveFormat.values()) System.out.println(c);
public static ArchiveFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public static ArchiveFormat fromExtension(@Nonnull String extension)
extension
, case-insensitively.extension
- the extension to search forextension
IllegalArgumentException
- if no format produces the requested extension@Nonnull public String getDefaultExtension()
Copyright © 2019 Atlassian. All rights reserved.