Package com.fasterxml.aalto.util
Class UriCanonicalizer
- java.lang.Object
-
- com.fasterxml.aalto.util.UriCanonicalizer
-
public final class UriCanonicalizer extends java.lang.Object
This class is used for canonicalization of namespace URIs. It will act as a layer above String.intern(), trying to reduce calls to somewhat slow intern() method, and to do that as efficiently as possible considering that Strings in question are often longer than names in xml documents.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
UriCanonicalizer.BoundedHashMap
We'll use a bounded map, which should work well for most normal cases, but avoid excesses for degenerate cases (unique URIs used as idenfitiers etc).(package private) static class
UriCanonicalizer.CanonicalKey
-
Field Summary
Fields Modifier and Type Field Description private UriCanonicalizer.BoundedHashMap
mURIs
-
Constructor Summary
Constructors Constructor Description UriCanonicalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
canonicalizeURI(char[] ch, int len)
private void
init()
-
-
-
Field Detail
-
mURIs
private UriCanonicalizer.BoundedHashMap mURIs
-
-