Package de.isas.mztab2.io
Class MzTabValidatingWriter.WriteAndParseValidator
- java.lang.Object
-
- de.isas.mztab2.io.MzTabValidatingWriter.WriteAndParseValidator
-
- Enclosing class:
- MzTabValidatingWriter
public static class MzTabValidatingWriter.WriteAndParseValidator extends Object implements Validator<MzTab>
A default validator implemenation that first writes and then parses the created temporary file, performing the parser checks.
-
-
Constructor Summary
Constructors Constructor Description WriteAndParseValidator(OutputStream outputStream, MZTabErrorType.Level level, int maxErrorCount)
Create a new instance of this validator.
-
-
-
Constructor Detail
-
WriteAndParseValidator
public WriteAndParseValidator(OutputStream outputStream, MZTabErrorType.Level level, int maxErrorCount)
Create a new instance of this validator.- Parameters:
outputStream
- the output stream to write to.level
- the error level for validation.maxErrorCount
- the maximum number of errors before an overflow exception while stop further processing.
-
-
Method Detail
-
validate
public List<ValidationMessage> validate(MzTab mzTab)
Description copied from interface:Validator
validate.
Please make sure that all exceptions are caught within the validate method!
-
-