summaryrefslogtreecommitdiff
path: root/connectivity/com/sun/star/sdbcx/comp
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-03-30 10:50:54 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-03-30 10:50:54 +0000
commit2370ad14e1f438c7bea4a97d4e853c846c609ff3 (patch)
tree35d03989039b85bc019fa25e70e173ae58ce67aa /connectivity/com/sun/star/sdbcx/comp
parent99ec43b4bb96ca13d492290f304f2b11fb1696dd (diff)
INTEGRATION: CWS dba28 (1.5.2); FILE MERGED
2005/03/23 14:52:26 fs 1.5.2.1: #i45314# properly implement sync
Diffstat (limited to 'connectivity/com/sun/star/sdbcx/comp')
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java23
1 files changed, 12 insertions, 11 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
index f4f2fcfbe3..c4efd69041 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.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: obo $ $Date: 2005-03-18 09:56:27 $
+ * last change: $Author: rt $ $Date: 2005-03-30 11:50:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -90,34 +90,34 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{
public StorageFileAccess(Object key) throws java.lang.Exception{
this.key = (String)key;
}
-
+
public void createParentDirs(java.lang.String filename) {
}
-
+
public boolean isStreamElement(java.lang.String elementName) {
return isStreamElement(key,elementName);
}
-
+
public java.io.InputStream openInputStreamElement(java.lang.String streamName) throws java.io.IOException {
return new NativeInputStreamHelper(key,streamName);
}
-
+
public java.io.OutputStream openOutputStreamElement(java.lang.String streamName) throws java.io.IOException {
return new NativeOutputStreamHelper(key,streamName);
}
-
+
public void removeElement(java.lang.String filename) throws java.util.NoSuchElementException, java.io.IOException {
if ( isStreamElement(key,filename) )
removeElement(key,filename);
}
-
+
public void renameElement(java.lang.String oldName, java.lang.String newName) throws java.util.NoSuchElementException, java.io.IOException {
if ( isStreamElement(key,oldName) ){
removeElement(key,newName);
renameElement(key,oldName, newName);
}
}
-
+
public class FileSync implements FileAccess.FileSync
{
NativeOutputStreamHelper os;
@@ -127,14 +127,15 @@ public class StorageFileAccess implements org.hsqldb.lib.FileAccess{
}
public void sync() throws java.io.IOException
{
+ os.sync();
}
}
-
+
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);
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;