Пример #1
0
 private static String[] readLDIFLines(
     final DN dn, final ChangeOperationType changeType, final String... lines) {
   final String[] modifiedLines = new String[lines.length + 2];
   if (changeType == MODIFY) {
     modifiedLines[0] = "dn: " + dn;
     modifiedLines[1] = "changetype: modify";
   }
   System.arraycopy(lines, 0, modifiedLines, 2, lines.length);
   return modifiedLines;
 }