Class ReplLDIFOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.opends.server.replication.plugin.ReplLDIFOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class ReplLDIFOutputStream extends OutputStream
This class creates an output stream that can be used to export entries to a synchronization domain.
-
-
Constructor Summary
Constructors Constructor Description ReplLDIFOutputStream(long numEntries)Creates a new ReplLDIFOutputStream related to a replication domain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetChecksumValue()Get the value of the underlying checksum.longgetNumExportedEntries()Return the number of exported entries.voidwrite(byte[] b, int off, int len)voidwrite(int i)-
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write
-
-
-
-
Method Detail
-
write
public void write(int i) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
getChecksumValue
public long getChecksumValue()
Get the value of the underlying checksum.- Returns:
- The value of the underlying checksum
-
write
public void write(byte[] b, int off, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
getNumExportedEntries
public long getNumExportedEntries()
Return the number of exported entries.- Returns:
- the numExportedEntries
-
-