Enum ImageCodec

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

    public enum ImageCodec
    extends java.lang.Enum<ImageCodec>
    • Method Detail

      • values

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

        public static ImageCodec 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
      • getByExtension

        public static ImageCodec getByExtension​(java.lang.String extension)
      • accept

        public abstract <T,​E extends java.lang.Exception> T accept​(IImageCodecVisitor<T,​E> visitor)
                                                                  throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • getName

        public java.lang.String getName()
      • isTransparentSupported

        public boolean isTransparentSupported()
      • getExtension

        public java.lang.String getExtension()
      • getExtensions

        public java.lang.String[] getExtensions()