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 long
getChecksumValue()
Get the value of the underlying checksum.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, nullOutputStream, write
-
-
-
-
Method Detail
-
write
public void write(int i) throws IOException
- Specified by:
write
in 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:
write
in classOutputStream
- Throws:
IOException
-
getNumExportedEntries
public long getNumExportedEntries()
Return the number of exported entries.- Returns:
- the numExportedEntries
-
-