|
||||||||||
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 String |
convertToLdif(Attributes attrs)
Convert an Attributes as LDIF |
static boolean |
isLDIFSafe(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 String |
stripLineToNChars(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(String str)
str
- the String to be checked
public static String convertToLdif(Attributes attrs) throws NamingException
attrs
- the Attributes to convert
NamingException
- If a naming exception is encountered.public static String stripLineToNChars(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 |