|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnetscape.ldap.util.LDAPWriter
public abstract class 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 |
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 stream| Method 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.IOExceptionprotected 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 java.lang.String getPrintableValue(byte[] b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||