public LanguageDetector getDetector() {
        return writer.getDetector();
    }
Returns the language detector used by this content handler.
Note that the returned detector gets updated whenever new SAX events
are received by this content handler.

@return language detector
tika-core/src/main/java/org/apache/tika/language/detect/LanguageHandler.java