public class FormatCompliance extends Object
Constructor and Description |
---|
FormatCompliance(String description) |
FormatCompliance(String description,
boolean fail_on_error) |
Modifier and Type | Method and Description |
---|---|
void |
addComment(String s) |
void |
addComment(String s,
int value) |
boolean |
checkBounds(String name,
int min,
int max,
int actual) |
boolean |
compare_bytes(String name,
byte[] expected,
byte[] actual) |
boolean |
compare(String name,
int[] valid,
int actual) |
boolean |
compare(String name,
int valid,
int actual) |
void |
dump() |
void |
dump(PrintWriter pw) |
static FormatCompliance |
getDefault() |
String |
toString() |
public FormatCompliance(String description)
public FormatCompliance(String description, boolean fail_on_error)
public static final FormatCompliance getDefault()
public void addComment(String s) throws ImageReadException
ImageReadException
public void addComment(String s, int value) throws ImageReadException
ImageReadException
public void dump()
public void dump(PrintWriter pw)
public boolean compare_bytes(String name, byte[] expected, byte[] actual) throws ImageReadException
ImageReadException
public boolean checkBounds(String name, int min, int max, int actual) throws ImageReadException
ImageReadException
public boolean compare(String name, int valid, int actual) throws ImageReadException
ImageReadException
public boolean compare(String name, int[] valid, int actual) throws ImageReadException
ImageReadException
Copyright © 2007-2012. All Rights Reserved.