/** * 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 ) ); }
readLines(); Attributes attributes = parseAttributes();
readLines(); Entry entry = parseEntry();
Object attributeValue = parseValue( line, colonIndex );
parseAttribute( attributes, line, lowerLine );
parseEntryAttribute( entry, line, lowerLine );
Object attributeValue = parseValue( line, colonIndex );
LdifAttributesReader reader = new LdifAttributesReader(); Attributes attributes = AttributeUtils.toAttributes( reader.parseEntry( sb.toString() ) );