summaryrefslogtreecommitdiff
path: root/connectivity/com
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-16 14:48:00 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-16 14:48:00 +0000
commit4cd2bd841a7d2affe54c72308df1f57fb32c774a (patch)
treecc0fa24b52800e60799d86f29c3ed0005de0d3b2 /connectivity/com
parent48504db6a31a7f12968f113ab3a7926af58db78c (diff)
INTEGRATION: CWS hsqldb2 (1.3.2); FILE MERGED
2005/01/26 09:05:06 oj 1.3.2.1: new version of hsqldb
Diffstat (limited to 'connectivity/com')
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
index 7b9deb21378f..7064c5dc8fcd 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
@@ -2,9 +2,9 @@
*
* $RCSfile: NativeStorageAccess.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kz $ $Date: 2005-01-21 16:36:44 $
+ * last change: $Author: vg $ $Date: 2005-02-16 15:48:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -95,33 +95,33 @@ public class NativeStorageAccess {
NativeLibraryLoader.loadLibrary(StorageNativeOutputStream.class.getClassLoader(), "hsqldb2");
}
/** Creates a new instance of StorageAccess */
- public NativeStorageAccess(String name,String _mode,Object key) throws java.lang.Exception{
+ public NativeStorageAccess(String name,String _mode,Object key) throws java.io.IOException{
try {
int mode = ElementModes.SEEKABLEREAD;
if ( _mode.equals("rw") )
- mode |= ElementModes.WRITE;
+ mode = ElementModes.READWRITE | ElementModes.SEEKABLE;
openStream(name, (String)key, mode);
} catch(Exception e){
- throw new java.lang.Exception();
+ throw new java.io.IOException();
}
}
public native void openStream(String name,String key, int mode);
- public native void close(String name,String key) throws java.lang.Exception;
+ public native void close(String name,String key) throws java.io.IOException;
- public native long getFilePointer(String name,String key) throws java.lang.Exception;
+ public native long getFilePointer(String name,String key) throws java.io.IOException;
- public native long length(String name,String key) throws java.lang.Exception;
+ public native long length(String name,String key) throws java.io.IOException;
- public native int read(String name,String key) throws java.lang.Exception;
+ public native int read(String name,String key) throws java.io.IOException;
- public native void read(String name,String key,byte[] b, int off, int len) throws java.lang.Exception;
+ public native int read(String name,String key,byte[] b, int off, int len) throws java.io.IOException;
- public native int readInt(String name,String key) throws java.lang.Exception;
+ public native int readInt(String name,String key) throws java.io.IOException;
- public native void seek(String name,String key,long position) throws java.lang.Exception;
+ public native void seek(String name,String key,long position) throws java.io.IOException;
- public native void write(String name,String key,byte[] b, int offset, int length) throws java.lang.Exception;
+ public native void write(String name,String key,byte[] b, int offset, int length) throws java.io.IOException;
- public native void writeInt(String name,String key,int v) throws java.lang.Exception;
+ public native void writeInt(String name,String key,int v) throws java.io.IOException;
}