public void documentMode(DocumentMode mode, String publicIdentifier,
            String systemIdentifier, boolean html4SpecificAdditionalErrorChecks)
            throws SAXException {
        switch (mode) {
            case ALMOST_STANDARDS_MODE:
                documentMode = "A";
                break;
            case QUIRKS_MODE:
                documentMode = "Q";
                break;
            case STANDARDS_MODE:
                if (publicIdentifier == null && systemIdentifier == null) {
                    documentMode = "H";
                } else {
                    documentMode = "S";
                }
                break;
        }
    }
@param in
@param out
@param rootDir
@param resolver
resources/examples/research-src/nu/validator/batchresearch/ValidationWorker.java