public <T extends DataElementData> T getData(Class<T> clazz) throws TikaException {
        if (this.data.getClass().equals(clazz)) {
            return (T) this.data;
        } else {
            throw new TikaException(String.format(Locale.US,
                    "Unable to cast DataElementData to the type %s, its actual type is %s",
                    clazz.getName(), this.data.getClass().getName()));
        }
    }
Used to get data.

@return Data of
the element
tika-parsers/tika-parsers-standard/tika-parsers-standard-modules/tika-parser-microsoft-module/src/main/java/org/apache/tika/parser/microsoft/onenote/fsshttpb/streamobj/DataElement.java