org.apache.sanselan
Class FormatCompliance
java.lang.Object
org.apache.sanselan.FormatCompliance
public class FormatCompliance
- extends java.lang.Object
Method Summary |
void |
addComment(java.lang.String s)
|
void |
addComment(java.lang.String s,
int value)
|
boolean |
checkBounds(java.lang.String name,
int min,
int max,
int actual)
|
boolean |
compare_bytes(java.lang.String name,
byte[] expected,
byte[] actual)
|
boolean |
compare(java.lang.String name,
int[] valid,
int actual)
|
boolean |
compare(java.lang.String name,
int valid,
int actual)
|
void |
dump()
|
void |
dump(java.io.PrintWriter pw)
|
static FormatCompliance |
getDefault()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FormatCompliance
public FormatCompliance(java.lang.String description)
FormatCompliance
public FormatCompliance(java.lang.String description,
boolean fail_on_error)
getDefault
public static final FormatCompliance getDefault()
addComment
public void addComment(java.lang.String s)
throws ImageReadException
- Throws:
ImageReadException
addComment
public void addComment(java.lang.String s,
int value)
throws ImageReadException
- Throws:
ImageReadException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
dump
public void dump()
dump
public void dump(java.io.PrintWriter pw)
compare_bytes
public boolean compare_bytes(java.lang.String name,
byte[] expected,
byte[] actual)
throws ImageReadException
- Throws:
ImageReadException
checkBounds
public boolean checkBounds(java.lang.String name,
int min,
int max,
int actual)
throws ImageReadException
- Throws:
ImageReadException
compare
public boolean compare(java.lang.String name,
int valid,
int actual)
throws ImageReadException
- Throws:
ImageReadException
compare
public boolean compare(java.lang.String name,
int[] valid,
int actual)
throws ImageReadException
- Throws:
ImageReadException
Copyright © 2007-2009. All Rights Reserved.