diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 14:48:29 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 14:48:29 +0000 |
commit | fcd304b9f442b818f7a6c885d4767dc60a90c0d6 (patch) | |
tree | 3ad900a60e97651e81fe471149b846171de2e42d /connectivity/com | |
parent | 93a37652f9c14803405844a42e9131e23758fbbd (diff) |
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
Diffstat (limited to 'connectivity/com')
-rw-r--r-- | connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java index a9d2a8be6425..d177d38096d1 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java @@ -2,9 +2,9 @@ * * $RCSfile: StorageFileAccess.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: kz $ $Date: 2005-01-21 16:36:57 $ + * last change: $Author: vg $ $Date: 2005-02-16 15:48:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,7 +84,6 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{ // 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 class StorageFileAccess implements org.hsqldb.lib.FileAccess{ } 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 { @@ -119,6 +118,23 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{ } } + 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; static native void removeElement(java.lang.String key,java.lang.String filename) throws java.util.NoSuchElementException, java.io.IOException; static native void renameElement(java.lang.String key,java.lang.String oldName, java.lang.String newName) throws java.util.NoSuchElementException, java.io.IOException; |