org.opends.server.replication.plugin
Class ReplLDIFOutputStream
java.lang.Object
java.io.OutputStream
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.
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 |
ReplLDIFOutputStream
public ReplLDIFOutputStream(ReplicationDomain domain,
long numEntries)
- Creates a new ReplLDIFOutputStream related to a replication
domain.
- Parameters:
domain
- The replication domainnumEntries
- The max number of entry to process.
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