public class FormatCompliance extends Object
| Constructor and Description |
|---|
FormatCompliance(String description) |
FormatCompliance(String description,
boolean failOnError) |
| Modifier and Type | Method and Description |
|---|---|
void |
addComment(String comment) |
void |
addComment(String comment,
int value) |
boolean |
checkBounds(String name,
int min,
int max,
int actual) |
boolean |
compare(String name,
int[] valid,
int actual) |
boolean |
compare(String name,
int valid,
int actual) |
boolean |
compareBytes(String name,
byte[] expected,
byte[] actual) |
void |
dump() |
void |
dump(PrintWriter pw) |
static FormatCompliance |
getDefault() |
String |
toString() |
public FormatCompliance(String description)
public FormatCompliance(String description, boolean failOnError)
public static FormatCompliance getDefault()
public void addComment(String comment) throws ImageReadException
ImageReadExceptionpublic void addComment(String comment, int value) throws ImageReadException
ImageReadExceptionpublic void dump()
public void dump(PrintWriter pw)
public boolean compareBytes(String name, byte[] expected, byte[] actual) throws ImageReadException
ImageReadExceptionpublic boolean checkBounds(String name, int min, int max, int actual) throws ImageReadException
ImageReadExceptionpublic boolean compare(String name, int valid, int actual) throws ImageReadException
ImageReadExceptionpublic boolean compare(String name, int[] valid, int actual) throws ImageReadException
ImageReadExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.