Enum EncodeStrategy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EncodeStrategy>

    public enum EncodeStrategy
    extends java.lang.Enum<EncodeStrategy>
    Details how an ResourceEncoder will encode a resource to cache.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE
      Will write no data.
      SOURCE
      Writes the original unmodified data for the resource to disk, not include downsampling or transformations.
      TRANSFORMED
      Writes the decoded, downsampled and transformed data for the resource to disk.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static EncodeStrategy valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EncodeStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • SOURCE

        public static final EncodeStrategy SOURCE
        Writes the original unmodified data for the resource to disk, not include downsampling or transformations.
      • TRANSFORMED

        public static final EncodeStrategy TRANSFORMED
        Writes the decoded, downsampled and transformed data for the resource to disk.
    • Method Detail

      • values

        public static EncodeStrategy[] 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 (EncodeStrategy c : EncodeStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EncodeStrategy 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 name
        java.lang.NullPointerException - if the argument is null