java.io.SerializableDSMLWriter, LDIFWriterpublic abstract class LDAPWriter
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
protected java.io.PrintWriter |
m_pw |
| Constructor | Description |
|---|---|
LDAPWriter(java.io.PrintWriter pw) |
Constructs an
LDAPWriter object to output entries
to a stream. |
| Modifier and Type | Method | Description |
|---|---|---|
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
|
public LDAPWriter(java.io.PrintWriter pw)
LDAPWriter object to output entries
to a stream.pw - output streampublic void printEntry(LDAPEntry entry) throws java.io.IOException
entry - an LDAPEntry to be formatted to the output
streamjava.io.IOExceptionpublic void printSchema(LDAPEntry entry) throws java.io.IOException
entry - an LDAPEntry containing schema to be formatted
to the output streamjava.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)