Directory SDK
for Java 4.19

netscape.ldap.util
Class LDAPWriter

java.lang.Object
  extended bynetscape.ldap.util.LDAPWriter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DSMLWriter, LDIFWriter

public abstract class LDAPWriter
extends Object
implements Serializable

Abstract class for outputting LDAP entries to a stream.

See Also:
Serialized Form

Constructor Summary
LDAPWriter(PrintWriter pw)
          Constructs an LDAPWriter object to output entries to a stream.
 
Method Summary
 void printEntry(LDAPEntry entry)
          The main method of LDAPWriter.
 void printSchema(LDAPEntry entry)
          Default schema writer - assumes an ordinary entry
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPWriter

public LDAPWriter(PrintWriter pw)
Constructs an LDAPWriter object to output entries to a stream.

Parameters:
pw - output stream
Method Detail

printEntry

public void printEntry(LDAPEntry entry)
                throws IOException
The main method of LDAPWriter. It calls printEntryIntro, printAttribute, and printEntryEnd of derived classes.

Parameters:
entry - an LDAPEntry to be formatted to the output stream
Throws:
IOException

printSchema

public void printSchema(LDAPEntry entry)
                 throws IOException
Default schema writer - assumes an ordinary entry

Parameters:
entry - an LDAPEntry containing schema to be formatted to the output stream
Throws:
IOException

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.