Package org.apache.commons.imaging
Class FormatCompliance
java.lang.Object
org.apache.commons.imaging.FormatCompliance
Provides information about the compliance of a specified data
source (byte array, file, etc.) to an image format.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFormatCompliance
(String description) FormatCompliance
(String description, boolean failOnError) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComment
(String comment) void
addComment
(String comment, int value) boolean
checkBounds
(String name, int min, int max, int actual) boolean
boolean
boolean
compareBytes
(String name, byte[] expected, byte[] actual) void
dump()
void
dump
(PrintWriter pw) static FormatCompliance
private String
getValueDescription
(int value) toString()
-
Field Details
-
LOGGER
-
failOnError
private final boolean failOnError -
description
-
comments
-
-
Constructor Details
-
FormatCompliance
-
FormatCompliance
-
-
Method Details
-
getDefault
-
addComment
- Throws:
ImageReadException
-
addComment
- Throws:
ImageReadException
-
toString
-
dump
public void dump() -
dump
-
getValueDescription
-
compareBytes
- Throws:
ImageReadException
-
checkBounds
- Throws:
ImageReadException
-
compare
- Throws:
ImageReadException
-
compare
- Throws:
ImageReadException
-