/** * Convert a LDIF String to an attributes. * * @param ldif The LDIF string containing an attribute value * @return An Attributes instance * @exception LdapException If the LDIF String cannot be converted to an Attributes */ public static Attributes convertAttributesFromLdif( String ldif ) throws LdapLdifException { LdifAttributesReader reader = new LdifAttributesReader(); return AttributeUtils.toAttributes( reader.parseEntry( ldif ) ); }
Entry entry = parseEntry();
Attributes attributes = AttributeUtils.toAttributes( reader.parseEntry( sb.toString() ) );