org.jvnet.hudson.plugins.backup.utils.compress
Enum CompressionMethodEnum
java.lang.Object
java.lang.Enum<CompressionMethodEnum>
org.jvnet.hudson.plugins.backup.utils.compress.CompressionMethodEnum
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<CompressionMethodEnum>
public enum CompressionMethodEnum
- extends java.lang.Enum<CompressionMethodEnum>
List the different compression methods supported by backup plugin
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
ZIP
public static final CompressionMethodEnum ZIP
TARGZIP
public static final CompressionMethodEnum TARGZIP
TARBZ2
public static final CompressionMethodEnum TARBZ2
values
public static CompressionMethodEnum[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (CompressionMethodEnum c : CompressionMethodEnum.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static CompressionMethodEnum valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is null
getCode
public java.lang.String getCode()
getArchiver
public Archiver getArchiver()
getArchiver
public static Archiver getArchiver(CompressionMethodEnum method)
getUnArchiver
public UnArchiver getUnArchiver()
getUnArchiver
public static UnArchiver getUnArchiver(CompressionMethodEnum method)
getFromCode
public static CompressionMethodEnum getFromCode(java.lang.String code)
Copyright © 2009. All Rights Reserved.