Package kieker.common.util.filesystem
Enum Class BinaryCompressionMethod
- All Implemented Interfaces:
Serializable,Comparable<BinaryCompressionMethod>,Constable
Deprecated.
since 1.15 remove in 1.16
This enum delivers different compression methods, which can be used to read and write compressed binary files.
- Since:
- 1.7
- Author:
- Jan Waller
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.A binary compression method using the compression format "deflate".Deprecated.A binary compression method using the compression format "GZIP".Deprecated.A binary compression method using no compression format.Deprecated.A binary compression method using the compression format "ZIP". -
Method Summary
Modifier and TypeMethodDescriptionstatic final BinaryCompressionMethodgetByFileExtension(String name) Deprecated.This method tries to search for a suitable compression method using the extension of the file.abstract DataInputStreamgetDataInputStream(File inputFile, int bufferSize) Deprecated.Implementing compression methods should override this method to deliver an input stream which can be used to read data in a non-compressed way from the given file.abstract DataOutputStreamgetDataOutputStream(File outputFile, int bufferSize) Deprecated.Implementing compression methods should override this method to deliver an output stream which can be used to write data in a compressed way into the given file.final StringDeprecated.static final booleanhasValidFileExtension(String name) Deprecated.This method checks whether there exists a suitable compression method for the extension of the file.static BinaryCompressionMethodDeprecated.Returns the enum constant of this class with the specified name.static BinaryCompressionMethod[]values()Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Deprecated.A binary compression method using no compression format. -
DEFLATE
Deprecated.A binary compression method using the compression format "deflate". -
GZIP
Deprecated.A binary compression method using the compression format "GZIP". -
ZIP
Deprecated.A binary compression method using the compression format "ZIP".
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getFileExtension
Deprecated. -
getDataOutputStream
public abstract DataOutputStream getDataOutputStream(File outputFile, int bufferSize) throws IOException Deprecated.Implementing compression methods should override this method to deliver an output stream which can be used to write data in a compressed way into the given file.- Parameters:
outputFile- The output file.bufferSize- The buffer size for the stream- Returns:
- A new output stream for the given file.
- Throws:
IOException- If something went wrong during the initialization.
-
getDataInputStream
public abstract DataInputStream getDataInputStream(File inputFile, int bufferSize) throws IOException Deprecated.Implementing compression methods should override this method to deliver an input stream which can be used to read data in a non-compressed way from the given file.- Parameters:
inputFile- The input file.bufferSize- The buffer size for the stream- Returns:
- A new input stream for the given file.
- Throws:
IOException- If something went wrong during the initialization.
-
hasValidFileExtension
Deprecated.This method checks whether there exists a suitable compression method for the extension of the file.- Parameters:
name- The name of the file.- Returns:
- true if a suitable compression method exists.
- See Also:
-
getByFileExtension
public static final BinaryCompressionMethod getByFileExtension(String name) throws IllegalArgumentException Deprecated.This method tries to search for a suitable compression method using the extension of the file.- Parameters:
name- The name of the file.- Returns:
- A suitable compression method if it exists.
- Throws:
IllegalArgumentException- If a suitable method was not found.- See Also:
-