directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1598953 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
Date Sun, 01 Jun 2014 07:42:00 GMT
Author: kayyagari
Date: Sun Jun  1 07:42:00 2014
New Revision: 1598953

URL: http://svn.apache.org/r1598953
Log:
added a method to allow creation of schema-aware LDIF reader sub-classes

Modified:
    directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java

Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java?rev=1598953&r1=1598952&r2=1598953&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
(original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
Sun Jun  1 07:42:00 2014
@@ -1315,7 +1315,7 @@ public class LdifReader implements Itera
         Dn dn = new Dn( name );
 
         // Ok, we have found a Dn
-        LdifEntry entry = new LdifEntry();
+        LdifEntry entry = createLdifEntry();
         entry.setLengthBeforeParsing( entryLen );
         entry.setOffset( entryOffset );
 
@@ -1977,6 +1977,16 @@ public class LdifReader implements Itera
 
 
     /**
+     * creates a non-schemaaware LdifEntry
+     * @return an LdifEntry that is not schemaaware
+     */
+    protected LdifEntry createLdifEntry()
+    {
+        return new LdifEntry();
+    }
+    
+    
+    /**
      * {@inheritDoc}
      */
     public void close() throws IOException



Mime
View raw message