public String[] names() {
        return metadata.keySet().toArray(new String[0]);
    }
Returns an array of the names contained in the metadata.

@return Metadata names
tika-core/src/main/java/org/apache/tika/metadata/Metadata.java