public String validate(Path path) throws IOException, SAXException {
        try (OneOffValidator validator = new OneOffValidator(asciiQuotes, detectLanguages, forceHTML, lineOffset, loadEntities, noStream, outputFormat, schemaUrl)) {
            return validator.validate(path);
        }
    }
Validate the file at the given path

@param path
           a valid {@link Path} to a readable file
@return validation output {@link String}
@throws IllegalStateException
@throws IOException
@throws SAXException
src/nu/validator/client/EmbeddedValidator.java