
org.openas2.lib.util.GeneralUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.lib.util;
import java.util.Collections;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class GeneralUtil {
public static String[] convert(Enumeration en) {
List list = Collections.list(en);
return convert(list);
}
static String[] convert(List list)
{
String[] values = new String[0];
return list.toArray(values);
}
public static String[] convertKeys(Map, Object> map) {
String[] keys = new String[0];
return map.keySet().toArray(keys);
}
public static String convert(Map, ?> map, String valueDelimiter, String pairDelimiter) {
StringBuffer strBuf = new StringBuffer();
Iterator> it = map.entrySet().iterator();
Map.Entry
© 2015 - 2025 Weber Informatics LLC | Privacy Policy