diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 14:48:14 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2005-02-16 14:48:14 +0000 |
commit | 93a37652f9c14803405844a42e9131e23758fbbd (patch) | |
tree | e1a2e26bf581ec8ceeeda61d48713a9e28393ae3 /connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java | |
parent | INTEGRATION: CWS hsqldb2 (1.3.2); FILE MERGED (diff) | |
download | core-93a37652f9c14803405844a42e9131e23758fbbd.tar.gz core-93a37652f9c14803405844a42e9131e23758fbbd.zip |
INTEGRATION: CWS hsqldb2 (1.2.20); FILE MERGED
2005/01/28 12:21:05 oj 1.2.20.2: #i39922# new interfaces in hsqldb
2005/01/26 09:05:06 oj 1.2.20.1: new version of hsqldb
Diffstat (limited to 'connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java')
-rw-r--r-- | connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java index ab4545954677..e6b9856a8e04 100644 --- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java +++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java @@ -15,34 +15,35 @@ public class NativeOutputStreamHelper extends java.io.OutputStream{ private String key; private String file; - XStorage storage; private StorageNativeOutputStream out; /** Creates a new instance of NativeOutputStreamHelper */ - public NativeOutputStreamHelper(String key,String _file,XStorage _storage) { + public NativeOutputStreamHelper(String key,String _file) { file = _file; - storage = _storage; this.key = key; out = new StorageNativeOutputStream(file,key); } public void write(byte[] b, int off, int len) throws java.io.IOException{ - out.write(storage,key,file,b, off, len); + out.write(key,file,b, off, len); } public void write(byte[] b) throws java.io.IOException{ - out.write(storage,key,file,b); + out.write(key,file,b); } public void close() throws java.io.IOException{ - out.close(storage,key,file); + out.close(key,file); } public void write(int b) throws java.io.IOException{ - out.write(storage,key,file,b); + out.write(key,file,b); } public void flush() throws java.io.IOException{ - out.flush(storage,key,file); + out.flush(key,file); } + public void sync() throws java.io.IOException{ + out.sync(key,file); + } } |