Enum WebPChunkType
- java.lang.Object
-
- java.lang.Enum<WebPChunkType>
-
- org.apache.commons.imaging.formats.webp.WebPChunkType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<WebPChunkType>
public enum WebPChunkType extends java.lang.Enum<WebPChunkType>
WebP chunk type.- Since:
- 1.0.0-alpha4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceWebPChunkType.ChunkConstructor
-
Field Summary
Fields Modifier and Type Field Description private WebPChunkType.ChunkConstructorconstructorprivate static WebPChunkType[]types(package private) intvalue
-
Constructor Summary
Constructors Modifier Constructor Description privateWebPChunkType(WebPChunkType.ChunkConstructor constructor)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static WebPChunkTypefindType(int chunkType)(package private) static AbstractWebPChunkmakeChunk(int chunkType, int size, byte[] bytes)static WebPChunkTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static WebPChunkType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALPH
public static final WebPChunkType ALPH
- See Also:
WebPChunkAlph
-
VP8
public static final WebPChunkType VP8
- See Also:
WebPChunkVp8
-
VP8L
public static final WebPChunkType VP8L
- See Also:
WebPChunkVp8l
-
VP8X
public static final WebPChunkType VP8X
- See Also:
WebPChunkVp8x
-
ANIM
public static final WebPChunkType ANIM
- See Also:
WebPChunkAnim
-
ANMF
public static final WebPChunkType ANMF
- See Also:
WebPChunkAnmf
-
ICCP
public static final WebPChunkType ICCP
- See Also:
WebPChunkIccp
-
EXIF
public static final WebPChunkType EXIF
- See Also:
WebPChunkExif
-
XMP
public static final WebPChunkType XMP
- See Also:
WebPChunkXml
-
-
Field Detail
-
types
private static final WebPChunkType[] types
-
constructor
private final WebPChunkType.ChunkConstructor constructor
-
value
final int value
-
-
Constructor Detail
-
WebPChunkType
private WebPChunkType(WebPChunkType.ChunkConstructor constructor)
-
-
Method Detail
-
values
public static WebPChunkType[] 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 (WebPChunkType c : WebPChunkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WebPChunkType 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 namejava.lang.NullPointerException- if the argument is null
-
findType
static WebPChunkType findType(int chunkType)
-
makeChunk
static AbstractWebPChunk makeChunk(int chunkType, int size, byte[] bytes) throws java.io.IOException, ImagingException
- Throws:
java.io.IOExceptionImagingException
-
-