|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--netscape.ldap.util.LDAPWriter
Abstract class for outputting LDAP entries to a stream.
Field Summary | |
---|---|
protected java.io.PrintWriter |
m_pw
|
Constructor Summary | |
---|---|
LDAPWriter(java.io.PrintWriter pw)
Constructs an LDAPWriter object to output entries
to a stream. |
Method Summary | |
---|---|
protected java.lang.String |
getPrintableValue(byte[] b)
|
protected abstract void |
printAttribute(LDAPAttribute attr)
Print an attribute of an entry |
void |
printEntry(LDAPEntry entry)
The main method of LDAPWriter. |
protected abstract void |
printEntryEnd(java.lang.String dn)
Print epilogue to entry |
protected abstract void |
printEntryStart(java.lang.String dn)
Print prologue to entry |
protected void |
printFooter()
Print footer at bottom of output |
protected void |
printHeader()
Print header at top of output These two new functions are not abstract to avoid breaking other classes |
void |
printSchema(LDAPEntry entry)
Default schema writer - assumes an ordinary entry |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.PrintWriter m_pw
Constructor Detail |
public LDAPWriter(java.io.PrintWriter pw)
LDAPWriter
object to output entries
to a stream.
pw
- output streamMethod Detail |
public void printEntry(LDAPEntry entry) throws java.io.IOException
entry
- an LDAPEntry to be formatted to the output
stream
java.io.IOException
public void printSchema(LDAPEntry entry) throws java.io.IOException
entry
- an LDAPEntry containing schema to be formatted
to the output stream
java.io.IOException
protected abstract void printAttribute(LDAPAttribute attr)
attr
- the attribute to format to the output streamprotected abstract void printEntryStart(java.lang.String dn)
dn
- the DN of the entryprotected abstract void printEntryEnd(java.lang.String dn)
dn
- the DN of the entryprotected void printHeader()
protected void printFooter()
protected java.lang.String getPrintableValue(byte[] b)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |