org.opends.server.replication.plugin
Class ReplLDIFOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.opends.server.replication.plugin.ReplLDIFOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class ReplLDIFOutputStream
extends java.io.OutputStream

This class creates an output stream that can be used to export entries to a synchonization domain.


Constructor Summary
ReplLDIFOutputStream(ReplicationDomain domain, long numEntries)
          Creates a new ReplLDIFOutputStream related to a replication domain.
 
Method Summary
 long getNumExportedEntries()
          Return the number of exported entries.
 void write(byte[] b, int off, int len)
          
 void write(int i)
          
 
Methods inherited from class java.io.OutputStream
close, flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplLDIFOutputStream

public ReplLDIFOutputStream(ReplicationDomain domain,
                            long numEntries)
Creates a new ReplLDIFOutputStream related to a replication domain.

Parameters:
domain - The replication domain
numEntries - The max number of entry to process.
Method Detail

write

public void write(int i)
           throws java.io.IOException

Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException

Overrides:
write in class java.io.OutputStream
Throws:
java.io.IOException

getNumExportedEntries

public long getNumExportedEntries()
Return the number of exported entries.

Returns:
the numExportedEntries