directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1612973 - /directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/api/ldap/model/ldif/LdifReader.java
Date Thu, 24 Jul 2014 00:20:53 GMT
Author: elecharny
Date: Thu Jul 24 00:20:53 2014
New Revision: 1612973

URL: http://svn.apache.org/r1612973
Log:
o Added some Javadoc
o Made the init() method public

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=1612973&r1=1612972&r2=1612973&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
Thu Jul 24 00:20:53 2014
@@ -250,6 +250,9 @@ public class LdifReader implements Itera
     }
 
 
+    /**
+     * Store the reader and intialize the LdifReader
+     */
     private void initReader( BufferedReader reader ) throws LdapException
     {
         this.reader = reader;
@@ -257,7 +260,12 @@ public class LdifReader implements Itera
     }
 
 
-    protected void init() throws LdapException
+    /**
+     * Initialize the LdifReader
+     * 
+     * @throws LdapException If the initialization failed
+     */
+    public void init() throws LdapException
     {
         lines = new ArrayList<String>();
         position = 0;
@@ -361,7 +369,7 @@ public class LdifReader implements Itera
             LOG.error( msg );
             throw new LdapLdifException( msg );
         }
-
+        
         try
         {
             initReader( new BufferedReader( new FileReader( file ) ) );



Mime
View raw message