Package netscape.ldap.util
Class DSMLWriter
java.lang.Object
netscape.ldap.util.LDAPWriter
netscape.ldap.util.DSMLWriter
- All Implemented Interfaces:
Serializable
Class for outputting LDAP entries to a stream as DSML.
- Version:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class netscape.ldap.util.LDAPWriter
m_pw
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aDSMLWriter
object to output entries to a stream as DSML. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
printAttribute
(LDAPAttribute attr) Print an attribute of an entryprotected void
printAttributeSchema
(LDAPSchema schema) Prints the attribute schema from a schema object schema schema elementsprotected void
printEntryEnd
(String dn) Print epilogue to entryprotected void
Print prologue to entryprotected void
printEscapedValue
(String prolog, String value, String epilog) Print the element start, the value with escaping of special characters, and the element endprotected void
printObjectClassSchema
(LDAPSchema schema) Prints the object class schema from a schema object schema schema elementsvoid
printSchema
(LDAPEntry entry) Prints the schema from an entry containing subschema entry entry containing schema definitionsprotected void
printString
(String value) Methods inherited from class netscape.ldap.util.LDAPWriter
getPrintableValue, printEntry
-
Constructor Details
-
DSMLWriter
Constructs aDSMLWriter
object to output entries to a stream as DSML.- Parameters:
pw
- output stream
-
-
Method Details
-
printSchema
Prints the schema from an entry containing subschema entry entry containing schema definitions- Overrides:
printSchema
in classLDAPWriter
- Parameters:
entry
- an LDAPEntry containing schema to be formatted to the output stream
-
printObjectClassSchema
Prints the object class schema from a schema object schema schema elements -
printAttributeSchema
Prints the attribute schema from a schema object schema schema elements -
printAttribute
Print an attribute of an entry- Specified by:
printAttribute
in classLDAPWriter
- Parameters:
attr
- the attribute to format to the output stream
-
printEntryStart
Print prologue to entry- Specified by:
printEntryStart
in classLDAPWriter
- Parameters:
dn
- the DN of the entry
-
printEntryEnd
Print epilogue to entry- Specified by:
printEntryEnd
in classLDAPWriter
- Parameters:
dn
- the DN of the entry
-
printEscapedValue
Print the element start, the value with escaping of special characters, and the element end- Parameters:
prolog
- element startvalue
- value to be escapedepilog
- element end
-
printString
-