Directory SDK
for Java 4.19

netscape.ldap.util
Class LDIFWriter

java.lang.Object
  extended bynetscape.ldap.util.LDAPWriter
      extended bynetscape.ldap.util.LDIFWriter
All Implemented Interfaces:
Serializable

public class LDIFWriter
extends LDAPWriter

Class for outputting LDAP entries to a stream as LDIF.

See Also:
Serialized Form

Constructor Summary
LDIFWriter(PrintWriter pw)
          Constructs an LDIFWriter object to output entries to a stream as LDIF.
LDIFWriter(PrintWriter pw, boolean attrsOnly, String separator, boolean foldLines, boolean toFiles)
          Constructs an LDIFWriter object to output entries to a stream as LDIF.
 
Methods inherited from class netscape.ldap.util.LDAPWriter
printEntry, printSchema
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDIFWriter

public LDIFWriter(PrintWriter pw)
Constructs an LDIFWriter object to output entries to a stream as LDIF.

Parameters:
pw - output stream

LDIFWriter

public LDIFWriter(PrintWriter pw,
                  boolean attrsOnly,
                  String separator,
                  boolean foldLines,
                  boolean toFiles)
Constructs an LDIFWriter object to output entries to a stream as LDIF.

Parameters:
pw - output stream
attrsOnly - true if only attribute names, not values, are to be printed
separator - 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.

Directory SDK
for Java 4.19

Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.