public static enum PngChunk.ChunkOrderingConstraint extends Enum<PngChunk.ChunkOrderingConstraint>
Enum Constant and Description |
---|
AFTER_IDAT
After IDAT (this restriction does not apply to the standard PNG chunks)
|
AFTER_PLTE_BEFORE_IDAT
Must go after PLTE (if exists) but before IDAT
|
AFTER_PLTE_BEFORE_IDAT_PLTE_REQUIRED
Must go after PLTE (and it must exist) but before IDAT
|
BEFORE_IDAT
Must before IDAT (before or after PLTE)
|
BEFORE_PLTE_AND_IDAT
Must go before PLTE (and hence, also before IDAT)
|
NA
Does not apply
|
NONE
no ordering constraint
|
Modifier and Type | Method and Description |
---|---|
boolean |
isOk(int currentChunkGroup,
boolean hasplte) |
boolean |
mustGoAfterIDAT() |
boolean |
mustGoAfterPLTE()
after pallete, if exists
|
boolean |
mustGoBeforeIDAT() |
boolean |
mustGoBeforePLTE() |
static PngChunk.ChunkOrderingConstraint |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PngChunk.ChunkOrderingConstraint[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PngChunk.ChunkOrderingConstraint NONE
public static final PngChunk.ChunkOrderingConstraint BEFORE_PLTE_AND_IDAT
public static final PngChunk.ChunkOrderingConstraint AFTER_PLTE_BEFORE_IDAT
public static final PngChunk.ChunkOrderingConstraint AFTER_PLTE_BEFORE_IDAT_PLTE_REQUIRED
public static final PngChunk.ChunkOrderingConstraint BEFORE_IDAT
public static final PngChunk.ChunkOrderingConstraint AFTER_IDAT
public static final PngChunk.ChunkOrderingConstraint NA
public static PngChunk.ChunkOrderingConstraint[] values()
for (PngChunk.ChunkOrderingConstraint c : PngChunk.ChunkOrderingConstraint.values()) System.out.println(c);
public static PngChunk.ChunkOrderingConstraint 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 boolean mustGoBeforePLTE()
public boolean mustGoBeforeIDAT()
public boolean mustGoAfterPLTE()
public boolean mustGoAfterIDAT()
public boolean isOk(int currentChunkGroup, boolean hasplte)
Copyright © 2014. All rights reserved.