Enum Class BinaryCompressionMethod

java.lang.Object
java.lang.Enum<BinaryCompressionMethod>
kieker.common.util.filesystem.BinaryCompressionMethod
All Implemented Interfaces:
Serializable, Comparable<BinaryCompressionMethod>, Constable

@Deprecated public enum BinaryCompressionMethod extends Enum<BinaryCompressionMethod>
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
  • Enum Constant Details

    • NONE

      public static final BinaryCompressionMethod NONE
      Deprecated.
      A binary compression method using no compression format.
    • DEFLATE

      public static final BinaryCompressionMethod DEFLATE
      Deprecated.
      A binary compression method using the compression format "deflate".
    • GZIP

      public static final BinaryCompressionMethod GZIP
      Deprecated.
      A binary compression method using the compression format "GZIP".
    • ZIP

      public static final BinaryCompressionMethod ZIP
      Deprecated.
      A binary compression method using the compression format "ZIP".
  • Method Details

    • values

      public static BinaryCompressionMethod[] 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

      public static BinaryCompressionMethod valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getFileExtension

      public final String 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

      public static final boolean hasValidFileExtension(String name)
      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: