|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.ldif.LdifParserImpl
An LDAP Data Interchange Format (LDIF) parser. All LDIF attributes including control attributes within the LDIF that are not part of the entry proper are added to the Attributes or MultiMap instance supplied for population. These attributes where applicable need to be removed from the populated MultiMap or Attributes instance. Until they are the populated container cannot be deemed representative of an entry.
Constructor Summary | |
LdifParserImpl()
|
Method Summary | |
byte[] |
base64decode(java.lang.String attrValue)
Decodes an encoded string in base64 into a byte array. |
void |
parse(javax.naming.directory.Attributes attributes,
java.lang.String ldif)
Parses an String representing an entry in LDAP Data Interchange Format (LDIF) storing its attributes in the supplied Attributes instance. |
LdifEntry |
parse(java.lang.String an_ldif)
Parses an String representing an entry in LDAP Data Interchange Format (LDIF) storing its attributes in the supplied ldap entry instance. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LdifParserImpl()
Method Detail |
public byte[] base64decode(java.lang.String attrValue)
attrValue
- the value of a encoded binary attribute.
public void parse(javax.naming.directory.Attributes attributes, java.lang.String ldif) throws javax.naming.NamingException
parse
in interface LdifParser
attributes
- the attributes from the LDIF including the DN of the entry
represented by the LDIF.ldif
- the entry in LDAP Data Interchange Format
javax.naming.NamingException
- if there any failures while parsing the LDIF and populating
the attirubutespublic LdifEntry parse(java.lang.String an_ldif) throws javax.naming.NamingException
parse
in interface LdifParser
an_ldif
- the entry in LDAP Data Interchange Format
javax.naming.NamingException
- if there any failures while parsing the LDIF and populating
the attirubutes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |