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.
-
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
toString()
-
Constructor Details
-
FormatCompliance
-
FormatCompliance
-
-
Method Details
-
getDefault
-
addComment
- Throws:
ImagingException
-
addComment
- Throws:
ImagingException
-
checkBounds
- Throws:
ImagingException
-
compare
- Throws:
ImagingException
-
compare
- Throws:
ImagingException
-
compareBytes
- Throws:
ImagingException
-
dump
-
dump
-
toString
-