org.apache.directory.shared.ldap.name
Class DefaultStringNormalizer

java.lang.Object
  extended by org.apache.directory.shared.ldap.name.DefaultStringNormalizer
All Implemented Interfaces:
Normalizer

public class DefaultStringNormalizer
extends java.lang.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

Constructor Summary
DefaultStringNormalizer()
           
 
Method Summary
 java.lang.Object normalize(java.lang.Object value)
          Gets the normalized value.
static java.lang.Object normalizeString(java.lang.String string)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStringNormalizer

public DefaultStringNormalizer()
Method Detail

normalize

public java.lang.Object normalize(java.lang.Object value)
                           throws javax.naming.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:
javax.naming.NamingException - if an error results during normalization

normalizeString

public static java.lang.Object normalizeString(java.lang.String string)
                                        throws javax.naming.NamingException
Throws:
javax.naming.NamingException


Copyright © 2004-2012. All Rights Reserved.