@Override
    public boolean shouldTranslate(InputStream inputStream, Metadata metadata) throws IOException {
        for (EmbeddedStreamTranslator translator : translators) {
            if (translator.shouldTranslate(inputStream, metadata)) {
                return true;
            }
        }
        return false;
    }
This should sniff the stream to determine if it needs to be translated.
The translator is responsible for resetting the stream if any bytes have been read.
@param inputStream
@param metadata
@return
@throws IOException
tika-core/src/main/java/org/apache/tika/extractor/DefaultEmbeddedStreamTranslator.java