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