System.exit(-1);
}
}
if (readFromStdIn) {
InputSource is = new InputSource(System.in);
validator = new SimpleDocumentValidator();
setErrorHandler();
validateInputSourceAgainstSchema(is, schemaUrl);
} else if (hasFileArgs) {
List<File> files = new ArrayList<File>();
for (int i = fileArgsStart; i < args.length; i++) {
files.add(new File(args[i]));
}
validator = new SimpleDocumentValidator();
setErrorHandler();
validateFilesAgainstSchema(files, schemaUrl);
} else {
System.err.printf("\nError: No documents specified.\n");
usage();