Package cds.moc.misc
Class MocLint
java.lang.Object
cds.moc.misc.MocLint
MOC lint - verifying the IVOA 2.0, 1.1 and 1.0 MOC recommendation compatibility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check
(InputStream in) Check the IVOA 2.0 MOC recommendation compatibilitystatic boolean
Check the IVOA 2.0, 1.1 and 1.0 MOC recommendation compatibilitystatic int
check
(StringBuilder out, InputStream in) Check the IVOA 2.0, 1.1 and 1.0 MOC recommendation compatibilitystatic int
checkAscii
(StringBuilder out, InputStream in) Check the IVOA 2.0, 1.1 MOC recommendation compatibilitystatic int
checkFits
(StringBuilder out, InputStream in) Check the IVOA 2.0, 1.1 or 1.0 MOC recommendation compatibilitystatic void
-
Constructor Details
-
MocLint
public MocLint()
-
-
Method Details
-
main
-
check
Check the IVOA 2.0, 1.1 and 1.0 MOC recommendation compatibility- Parameters:
filename
- name of the file containing the MOC in FITS container- Returns:
- true if MOC is compatible
- Throws:
Exception
-
check
Check the IVOA 2.0 MOC recommendation compatibility- Parameters:
in
- stream containing the MOC in FITS or ASCII container- Returns:
- true if MOC is compatible
-
check
Check the IVOA 2.0, 1.1 and 1.0 MOC recommendation compatibility- Parameters:
in
- stream containing the MOC in FITS or ASCII container- Returns:
- 1-ok, 0-error, -1-warning
-
checkFits
Check the IVOA 2.0, 1.1 or 1.0 MOC recommendation compatibility- Parameters:
out
- Trace of the validatorin
- stream containing the MOC in FITS container- Returns:
- 1-ok, 0-error, -1-warning
-
checkAscii
Check the IVOA 2.0, 1.1 MOC recommendation compatibility- Parameters:
out
- Trace of the validatorin
- stream containing the MOC in ASCII container- Returns:
- 1-ok, 0-error, -1-warning
-