private void processBinaryData() throws IOException, SAXException {

        //TODO: figure out whether we're in an inline image or a regular
        //attachment and add that info to the embedded metadata

        byte[] bytes = Base64.decodeBase64(base64BinaryDataBuffer.toString());
        //clear state before parsing
        base64BinaryDataBuffer.setLength(0);
        inBinaryData = false;

        if (embeddedDocumentExtractor == null) {
            embeddedDocumentExtractor =
                    EmbeddedDocumentUtil.getEmbeddedDocumentExtractor(parseContext);
        }
        Metadata embeddedMetadata = new Metadata();
        if (embeddedDocumentExtractor.shouldParseEmbedded(embeddedMetadata)) {
            try (TikaInputStream tis = TikaInputStream.get(bytes)) {
                embeddedDocumentExtractor.parseEmbedded(tis, handler, embeddedMetadata, true);
            }
        }
    }
Check if a node is a text node
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-miscoffice-module/src/main/java/org/apache/tika/parser/odf/OpenDocumentBodyHandler.java