mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
19.01.2007 8bd487a1ad71e3a3394aef58c6670902342c1f84
Use ServerConstants.EOL instead of redefining it.
1 files modified
6 ■■■■■ changed files
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java 6 ●●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/plugin/ReplLDIFOutputStream.java
@@ -29,6 +29,8 @@
import java.io.IOException;
import java.io.OutputStream;
import org.opends.server.util.ServerConstants;
/**
 * This class creates an output stream that can be used to export entries
 * to a synchonization domain.
@@ -44,7 +46,6 @@
  // The current number of entries exported
  long numExportedEntries;
  static String newline = System.getProperty("line.separator");
  String entryBuffer = "";
  /**
@@ -81,7 +82,8 @@
    {
      // if we have the bytes for an entry, let's make an entry and send it
      String ebytes = new String(b,startOfEntryIndex,bytesToRead);
      endOfEntryIndex = ebytes.indexOf(newline + newline);
      endOfEntryIndex = ebytes.indexOf(ServerConstants.EOL +
          ServerConstants.EOL);
      if ( endOfEntryIndex >= 0 )
      {