@Override
    public InputStream translate(InputStream inputStream, Metadata metadata) throws IOException {
        for (EmbeddedStreamTranslator translator : translators) {
            InputStream translated = translator.translate(inputStream, metadata);
            if (translated != null) {
                return translated;
            }
        }
        return inputStream;
    }
This will consume the InputStream and return a new stream of translated bytes.
@param inputStream
@param metadata
@return
@throws IOException
tika-core/src/main/java/org/apache/tika/extractor/DefaultEmbeddedStreamTranslator.java