+ "] distinct entries");
}
}
public Translator createTranslator(ContentHandler handler) {
Translator result = new SLDTranslator(handler);
// add pre-configured namespace mappings
if (!uri2prefix.isEmpty()) {
for (Iterator it = uri2prefix.entrySet().iterator(); it.hasNext();) {
Map.Entry e = (Entry) it.next();
URI uri = (URI) e.getKey();
if (uri != null) {
String prefix = (String) e.getValue();
// FIXME handle default namespace and possible clash with
// one already known to the namespace-support delegate; i.e.
// the entry with an empty prefix
String uriStr = String.valueOf(uri);
result.getNamespaceSupport().declarePrefix(prefix, uriStr);
}
}
}
return result;
}