public static enum NCDComparator.CompressorType extends Enum<NCDComparator.CompressorType>
Modifier and Type | Method and Description |
---|---|
int |
calculateCompressedSize(String input)
Calculates the compressed size of the given input string in bytes.
|
static NCDComparator.CompressorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NCDComparator.CompressorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NCDComparator.CompressorType ZLIB
public static final NCDComparator.CompressorType ZIP
public static final NCDComparator.CompressorType LZ4
public static NCDComparator.CompressorType[] values()
for (NCDComparator.CompressorType c : NCDComparator.CompressorType.values()) System.out.println(c);
public static NCDComparator.CompressorType 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 int calculateCompressedSize(@NonNull String input) throws IOException
input
- a string.IOException
- thrown by a compressor if the given string could not be
handled.Copyright (C) 2016 Benjamin Paaßen, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs . This documentation is licensed under the conditions of CC-BY-SA 4.0: https://creativecommons.org/licenses/by-sa/4.0/