org.apache.directory.shared.ldap.name
Class DefaultStringNormalizer
java.lang.Object
org.apache.directory.shared.ldap.name.DefaultStringNormalizer
- All Implemented Interfaces:
- Normalizer
public class DefaultStringNormalizer
- extends Object
- implements Normalizer
A normalizer which transforms an escape sequence into an internal
canonical form: into UTF-8 characters presuming the escape sequence
fits that range. This is used explicity for non-binary attribute
types only.
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultStringNormalizer
public DefaultStringNormalizer()
normalize
public Object normalize(Object value)
throws NamingException
- Description copied from interface:
Normalizer
- Gets the normalized value.
- Specified by:
normalize
in interface Normalizer
- Parameters:
value
- the value to normalize. It must *not* be null !
- Returns:
- the normalized form for a value
- Throws:
NamingException
- if an error results during normalization
normalizeString
public static Object normalizeString(String string)
throws NamingException
- Throws:
NamingException
Copyright © 2004-2012. All Rights Reserved.