directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r639665 - /directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
Date Fri, 21 Mar 2008 15:20:36 GMT
Author: pamarcelot
Date: Fri Mar 21 08:20:12 2008
New Revision: 639665

URL: http://svn.apache.org/viewvc?rev=639665&view=rev
Log:
Part of a fix for DIRSTUDIO-46 (Add connections import/export).

Modified:
    directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java

Modified: directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java?rev=639665&r1=639664&r2=639665&view=diff
==============================================================================
--- directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
(original)
+++ directory/studio/trunk/ldapbrowser-core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserConnectionIO.java
Fri Mar 21 08:20:12 2008
@@ -20,9 +20,9 @@
 package org.apache.directory.studio.ldapbrowser.core;
 
 
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
 import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
 import java.util.ArrayList;
 import java.util.Iterator;
 import java.util.List;
@@ -95,7 +95,7 @@
      * @throws ConnectionIOException 
      *      if an error occurs when converting the document
      */
-    public static void load( FileInputStream stream, Map<String, IBrowserConnection>
browserConnectionMap ) throws ConnectionIOException
+    public static void load( InputStream stream, Map<String, IBrowserConnection> browserConnectionMap
) throws ConnectionIOException
     {
         SAXReader saxReader = new SAXReader();
         Document document = null;
@@ -351,7 +351,7 @@
      * @throws IOException
      *      if an I/O error occurs
      */
-    public static void save( FileOutputStream stream, Map<String, IBrowserConnection>
browserConnectionMap ) throws IOException
+    public static void save( OutputStream stream, Map<String, IBrowserConnection> browserConnectionMap
) throws IOException
     {
         // Creating the Document
         Document document = DocumentHelper.createDocument();



Mime
View raw message