public enum ImageCodec extends Enum<ImageCodec>
| Modifier and Type | Method and Description |
|---|---|
abstract <T,E extends Exception> |
accept(IImageCodecVisitor<T,E> visitor) |
static ImageCodec |
getByExtension(String extension) |
String |
getExtension() |
String[] |
getExtensions() |
String |
getName() |
boolean |
isTransparentSupported() |
static ImageCodec |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ImageCodec[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ImageCodec BMP
public static final ImageCodec GIF
public static final ImageCodec JPEG
public static final ImageCodec PNG
public static final ImageCodec TIFF
public static final ImageCodec UNKNOWN
public static ImageCodec[] values()
for (ImageCodec c : ImageCodec.values()) System.out.println(c);
public static ImageCodec 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 static ImageCodec getByExtension(String extension)
public abstract <T,E extends Exception> T accept(IImageCodecVisitor<T,E> visitor) throws E extends Exception
E extends Exceptionpublic String getName()
public boolean isTransparentSupported()
public String getExtension()
public String[] getExtensions()
Copyright © 2007–2019 Andreas W. Bartels. All rights reserved.