@SuppressWarnings("unchecked")
    public void setAll(Properties properties) {
        Enumeration<String> names = (Enumeration<String>) properties.propertyNames();
        while (names.hasMoreElements()) {
            String name = names.nextElement();
            metadata.put(name, new String[]{properties.getProperty(name)});
        }
    }
Copy All key-value pairs from properties.

@param properties properties to copy from
tika-core/src/main/java/org/apache/tika/metadata/Metadata.java