Package netscape.ldap.util
Class LDAPWriter
java.lang.Object
netscape.ldap.util.LDAPWriter
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DSMLWriter
,LDIFWriter
Abstract class for outputting LDAP entries to a stream.
- Version:
- 1.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs anLDAPWriter
object to output entries to a stream. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getPrintableValue
(byte[] b) protected abstract void
printAttribute
(LDAPAttribute attr) Print an attribute of an entryvoid
printEntry
(LDAPEntry entry) The main method of LDAPWriter.protected abstract void
printEntryEnd
(String dn) Print epilogue to entryprotected abstract void
Print prologue to entryvoid
printSchema
(LDAPEntry entry) Default schema writer - assumes an ordinary entry
-
Field Details
-
m_pw
-
-
Constructor Details
-
LDAPWriter
Constructs anLDAPWriter
object to output entries to a stream.- Parameters:
pw
- output stream
-
-
Method Details
-
printEntry
The main method of LDAPWriter. It calls printEntryIntro, printAttribute, and printEntryEnd of derived classes.- Parameters:
entry
- an LDAPEntry to be formatted to the output stream- Throws:
IOException
-
printSchema
Default schema writer - assumes an ordinary entry- Parameters:
entry
- an LDAPEntry containing schema to be formatted to the output stream- Throws:
IOException
-
printAttribute
Print an attribute of an entry- Parameters:
attr
- the attribute to format to the output stream
-
printEntryStart
Print prologue to entry- Parameters:
dn
- the DN of the entry
-
printEntryEnd
Print epilogue to entry- Parameters:
dn
- the DN of the entry
-
getPrintableValue
-