Package de.gsi.dataset.utils
Enum DataSetUtils.Compression
- java.lang.Object
-
- java.lang.Enum<DataSetUtils.Compression>
-
- de.gsi.dataset.utils.DataSetUtils.Compression
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DataSetUtils.Compression>
- Enclosing class:
- DataSetUtils
public static enum DataSetUtils.Compression extends java.lang.Enum<DataSetUtils.Compression>
Supported Compression Types
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSetUtils.CompressionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DataSetUtils.Compression[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO
public static final DataSetUtils.Compression AUTO
Determine Compression from file extension
-
GZIP
public static final DataSetUtils.Compression GZIP
GZIP compression
-
ZIP
public static final DataSetUtils.Compression ZIP
ZIP compression. Allways reads from first entry in archive and writes to a new entry with same filename as achive minus zip extension.
-
NONE
public static final DataSetUtils.Compression NONE
Plaintext csv data
-
-
Method Detail
-
values
public static DataSetUtils.Compression[] 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 (DataSetUtils.Compression c : DataSetUtils.Compression.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataSetUtils.Compression 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 namejava.lang.NullPointerException- if the argument is null
-
-