summaryrefslogtreecommitdiff
path: root/connectivity/com/sun
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/com/sun')
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/FileSystemRuntimeException.java2
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java16
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java2
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java14
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java24
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java2
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java2
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java12
-rw-r--r--connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java22
9 files changed, 48 insertions, 48 deletions
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/FileSystemRuntimeException.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/FileSystemRuntimeException.java
index af8bced79837..a10f07dbc4f9 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/FileSystemRuntimeException.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/FileSystemRuntimeException.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java
index fa14c7f5649a..214f8fd5ecce 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeInputStreamHelper.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,29 +46,29 @@ public class NativeInputStreamHelper extends java.io.InputStream{
this.key = key;
in = new StorageNativeInputStream(key,file);
}
-
+
public int read() throws java.io.IOException {
return in.read(key,file);
}
-
+
public int read(byte[] b, int off, int len) throws java.io.IOException {
return in.read(key,file,b,off,len);
}
-
+
public void close() throws java.io.IOException {
in.close(key,file);
}
-
+
public long skip(long n) throws java.io.IOException {
return in.skip(key,file,n);
}
-
+
public int available() throws java.io.IOException {
return in.available(key,file);
}
-
+
public int read(byte[] b) throws java.io.IOException {
return in.read(key,file,b);
}
-
+
}
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java
index 451dc6b1e325..11ab3e61c502 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeLibraries.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java
index cc4faaa3cedf..4f7b3d04dc88 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeOutputStreamHelper.java
@@ -11,7 +11,7 @@ package com.sun.star.sdbcx.comp.hsqldb;
* @author oj93728
*/
public class NativeOutputStreamHelper extends java.io.OutputStream{
-
+
private String key;
private String file;
private StorageNativeOutputStream out;
@@ -21,27 +21,27 @@ public class NativeOutputStreamHelper extends java.io.OutputStream{
this.key = key;
out = new StorageNativeOutputStream(file,key);
}
-
+
public void write(byte[] b, int off, int len) throws java.io.IOException{
out.write(key,file,b, off, len);
}
-
+
public void write(byte[] b) throws java.io.IOException{
out.write(key,file,b);
}
-
+
public void close() throws java.io.IOException{
out.close(key,file);
}
-
+
public void write(int b) throws java.io.IOException{
out.write(key,file,b);
}
-
+
public void flush() throws java.io.IOException{
out.flush(key,file);
}
-
+
public void sync() throws java.io.IOException{
out.sync(key,file);
}
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
index 276119e947b6..6e2bc1099dff 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/NativeStorageAccess.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ package com.sun.star.sdbcx.comp.hsqldb;
public class NativeStorageAccess {
static { NativeLibraries.load(); }
-
+
public static final int READ = 1;
public static final int SEEKABLE = 2;
public static final int SEEKABLEREAD = 3;
@@ -52,29 +52,29 @@ public class NativeStorageAccess {
try {
int mode = NativeStorageAccess.SEEKABLEREAD;
if ( _mode.equals("rw") )
- mode = NativeStorageAccess.READWRITE | NativeStorageAccess.SEEKABLE;
+ mode = NativeStorageAccess.READWRITE | NativeStorageAccess.SEEKABLE;
openStream(name, (String)key, mode);
- } catch(Exception e){
+ } catch(Exception e){
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.io.IOException;
-
+
public native long getFilePointer(String name,String key) throws java.io.IOException;
-
+
public native long length(String name,String key) throws java.io.IOException;
-
+
public native int read(String name,String key) throws java.io.IOException;
-
+
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.io.IOException;
-
+
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.io.IOException;
-
+
public native void writeInt(String name,String key,int v) throws java.io.IOException;
}
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java
index 6797ab39290b..8a1af5191913 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageAccess.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
index 4e24cd4c9385..536e72d0c8bf 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageFileAccess.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java
index 2ac4d2dbede8..f72d397ba845 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeInputStream.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,12 +42,12 @@ public class StorageNativeInputStream {
/** Creates a new instance of StorageNativeInputStream */
public StorageNativeInputStream(String key,String _file) {
openStream(key,_file, NativeStorageAccess.READ);
- }
+ }
public native void openStream(String key,String name, int mode);
public native int read(String key,String name) throws java.io.IOException;
- public native int read(String key,String name,byte[] b, int off, int len) throws java.io.IOException;
- public native void close(String key,String name) throws java.io.IOException;
- public native long skip(String key,String name,long n) throws java.io.IOException;
- public native int available(String key,String name) throws java.io.IOException;
+ public native int read(String key,String name,byte[] b, int off, int len) throws java.io.IOException;
+ public native void close(String key,String name) throws java.io.IOException;
+ public native long skip(String key,String name,long n) throws java.io.IOException;
+ public native int available(String key,String name) throws java.io.IOException;
public native int read(String key,String name,byte[] b) throws java.io.IOException;
}
diff --git a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java
index 6b9a4db50153..a95ef2ac5d4e 100644
--- a/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java
+++ b/connectivity/com/sun/star/sdbcx/comp/hsqldb/StorageNativeOutputStream.java
@@ -22,7 +22,7 @@ public class StorageNativeOutputStream {
key = _key;
openStream(name, (String)key, NativeStorageAccess.WRITE | NativeStorageAccess.TRUNCATE);
}
-
+
public native void openStream(String name,String key, int mode);
/**
* Writes <code>len</code> bytes from the specified byte array
@@ -54,7 +54,7 @@ public class StorageNativeOutputStream {
* stream is closed.
*/
public native void write(String key,String _file,byte[] b, int off, int len) throws java.io.IOException;
-
+
/**
* Writes <code>b.length</code> bytes from the specified byte array
* to this output stream. The general contract for <code>write(b)</code>
@@ -66,7 +66,7 @@ public class StorageNativeOutputStream {
* @see java.io.OutputStream#write(byte[], int, int)
*/
public native void write(String key,String _file,byte[] b) throws java.io.IOException;
-
+
/**
* Closes this output stream and releases any system resources
* associated with this stream. The general contract of <code>close</code>
@@ -80,7 +80,7 @@ public class StorageNativeOutputStream {
* @exception IOException if an I/O error occurs.
*/
public native void close(String key,String _file) throws java.io.IOException;
-
+
/**
* Writes the specified byte to this output stream. The general
* contract for <code>write</code> is that one byte is written
@@ -99,7 +99,7 @@ public class StorageNativeOutputStream {
* output stream has been closed.
*/
public native void write(String key,String _file,int b) throws java.io.IOException;
-
+
/**
* Flushes this output stream and forces any buffered output bytes
* to be written out. The general contract of <code>flush</code> is
@@ -115,11 +115,11 @@ public class StorageNativeOutputStream {
* @exception IOException if an I/O error occurs.
*/
public native void flush(String key,String _file) throws java.io.IOException;
-
+
/**
* Force all system buffers to synchronize with the underlying
* device. This method returns after all modified data and
- * attributes have been written to the relevant device(s).
+ * attributes have been written to the relevant device(s).
*
* sync is meant to be used by code that requires physical
* storage (such as a file) to be in a known state For
@@ -134,10 +134,10 @@ public class StorageNativeOutputStream {
* OutputStream.flush) before that data will be affected by sync.
*
* @exception IOException
- * Thrown when the buffers cannot be flushed,
- * or because the system cannot guarantee that all the
- * buffers have been synchronized with physical media.
+ * Thrown when the buffers cannot be flushed,
+ * or because the system cannot guarantee that all the
+ * buffers have been synchronized with physical media.
*/
public native void sync(String key,String _file) throws java.io.IOException;
-
+
}