User: vg      
Date: 05/02/16 07:48:32

Modified:
 /dba/connectivity/com/sun/star/sdbcx/comp/hsqldb/
  StorageFileAccess.java

Log:
 INTEGRATION: CWS hsqldb2 (1.3.2); FILE MERGED
 2005/01/28 12:21:05 oj 1.3.2.2: #i39922# new interfaces in hsqldb
 2005/01/26 09:05:07 oj 1.3.2.1: new version of hsqldb

File Changes:

Directory: /dba/connectivity/com/sun/star/sdbcx/comp/hsqldb/
============================================================

File [changed]: StorageFileAccess.java
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java?r1=1.3&r2=1.4
Delta lines:  +18 -2
--------------------
--- StorageFileAccess.java      21 Jan 2005 16:36:57 -0000      1.3
+++ StorageFileAccess.java      16 Feb 2005 15:48:29 -0000      1.4
@@ -84,7 +84,6 @@
        // load shared library for JNI code
         
NativeLibraryLoader.loadLibrary(StorageNativeOutputStream.class.getClassLoader(),
 "hsqldb2");
     }
-    XStorage storage;
     String ds_name;
     String key;
     /** Creates a new instance of StorageFileAccess */
@@ -104,7 +103,7 @@
     }
     
     public java.io.OutputStream openOutputStreamElement(java.lang.String 
streamName) throws java.io.IOException {
-        return new NativeOutputStreamHelper(key,streamName,storage);
+        return new NativeOutputStreamHelper(key,streamName);
     }
     
     public void removeElement(java.lang.String filename) throws 
java.util.NoSuchElementException, java.io.IOException {
@@ -117,6 +116,23 @@
             removeElement(key,newName);
             renameElement(key,oldName, newName);
         }
+    }
+    
+    public class FileSync implements FileAccess.FileSync
+    {
+        NativeOutputStreamHelper os;
+        FileSync(NativeOutputStreamHelper _os) throws java.io.IOException
+        {
+            os = _os;
+        }
+        public void sync() throws java.io.IOException
+        {
+        }
+    }
+    
+    public FileAccess.FileSync getFileSync(java.io.OutputStream os) throws 
java.io.IOException
+    {
+        return new FileSync((NativeOutputStreamHelper)os);
     }
     
     static native boolean isStreamElement(java.lang.String 
key,java.lang.String elementName) throws java.util.NoSuchElementException, 
java.io.IOException;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to