|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetscape.ldap.util.LDAPWriter
netscape.ldap.util.LDIFWriter
Class for outputting LDAP entries to a stream as LDIF.
Field Summary |
Fields inherited from class netscape.ldap.util.LDAPWriter |
m_pw |
Constructor Summary | |
LDIFWriter(java.io.PrintWriter pw)
Constructs an LDIFWriter object to output entries
to a stream as LDIF. |
|
LDIFWriter(java.io.PrintWriter pw,
boolean attrsOnly,
java.lang.String separator,
boolean foldLines,
boolean toFiles)
Constructs an LDIFWriter object to output entries
to a stream as LDIF. |
Method Summary | |
protected java.io.FileOutputStream |
getTempFile(java.lang.String name)
Create a unique file name in the temp folder and open an output stream to the file |
protected void |
printAttribute(LDAPAttribute attr)
Print an attribute of an entry |
protected void |
printEntryEnd(java.lang.String dn)
Print epilogue to entry |
protected void |
printEntryStart(java.lang.String dn)
Print prologue to entry |
protected void |
printString(java.lang.String value)
|
Methods inherited from class netscape.ldap.util.LDAPWriter |
getPrintableValue, printEntry, printFooter, printHeader, printSchema |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LDIFWriter(java.io.PrintWriter pw)
LDIFWriter
object to output entries
to a stream as LDIF.
pw
- output streampublic LDIFWriter(java.io.PrintWriter pw, boolean attrsOnly, java.lang.String separator, boolean foldLines, boolean toFiles)
LDIFWriter
object to output entries
to a stream as LDIF.
pw
- output streamattrsOnly
- true
if only attribute names, not
values, are to be printedseparator
- String to use between attribute names and values;
the default is ":"foldLines
- true
to fold lines at 77 characters,
false
to not fold them; the default is true
.toFiles
- true
to write each attribute value to a
file in the temp folder, false
to write them to the
output stream in printable format; the default is false
.Method Detail |
protected void printAttribute(LDAPAttribute attr)
printAttribute
in class LDAPWriter
attr
- the attribute to format to the output streamprotected void printEntryStart(java.lang.String dn)
printEntryStart
in class LDAPWriter
dn
- the DN of the entryprotected void printEntryEnd(java.lang.String dn)
printEntryEnd
in class LDAPWriter
dn
- the DN of the entryprotected void printString(java.lang.String value)
protected java.io.FileOutputStream getTempFile(java.lang.String name) throws java.io.IOException
name
- base name of file; an extension is appended which
consists of a number that makes the name unique
java.io.IOException
- if the file couldn't be opened for output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |