public enum CompressionType extends Enum<CompressionType>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Enum Constant and Description |
|---|
AUTODETECT
Auto-detect the compression method (only for readers).
|
BZIP2
Create or read a bzip2-compressed file.
|
GZIP
Create or read a gzip-compressed file.
|
NONE
Do not compress / uncompress the data.
|
ZIP
Create or read a ZIP archive with one, top-level entry in the TOC.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getExtension()
Retrieve the commonly used file extension for files containing data that is compressed using this method.
|
static CompressionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompressionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompressionType NONE
public static final CompressionType ZIP
public static final CompressionType GZIP
public static final CompressionType BZIP2
public static final CompressionType AUTODETECT
public static CompressionType[] values()
for (CompressionType c : CompressionType.values()) System.out.println(c);
public static CompressionType 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 nullpublic String getExtension()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.