|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.ldif.LdifUtils
public class LdifUtils
Some LDIF useful methods
| Constructor Summary | |
|---|---|
LdifUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
convertToLdif(javax.naming.directory.Attributes attrs)
Convert an Attributes as LDIF |
static boolean |
isLDIFSafe(java.lang.String str)
Checks if the input String contains only safe values, that is, the data does not need to be encoded for use with LDIF. |
static java.lang.String |
stripLineToNChars(java.lang.String str,
int nbChars)
Strips the String every n specified characters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LdifUtils()
| Method Detail |
|---|
public static boolean isLDIFSafe(java.lang.String str)
str - the String to be checked
public static java.lang.String convertToLdif(javax.naming.directory.Attributes attrs)
throws javax.naming.NamingException
attrs - the Attributes to convert
javax.naming.NamingException - If a naming exception is encountered.
public static java.lang.String stripLineToNChars(java.lang.String str,
int nbChars)
str - the string to stripnbChars - the number of characters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||