diff options
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java index 2f48fcc371e0..801cb0d4be3a 100644 --- a/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java +++ b/scripting/java/com/sun/star/script/framework/io/XInputStreamImpl.java @@ -18,9 +18,10 @@ package com.sun.star.script.framework.io; -import com.sun.star.io.XInputStream; -import java.io.InputStream; import java.io.IOException; +import java.io.InputStream; + +import com.sun.star.io.XInputStream; public class XInputStreamImpl implements XInputStream { @@ -47,11 +48,11 @@ public class XInputStreamImpl implements XInputStream } catch ( IOException e ) { - throw new com.sun.star.io.IOException( e.toString() ); + throw new com.sun.star.io.IOException(e); } catch ( IndexOutOfBoundsException aie ) { - throw new com.sun.star.io.BufferSizeExceededException( aie.toString() ); + throw new com.sun.star.io.BufferSizeExceededException(aie); } return totalBytesRead; } @@ -76,7 +77,7 @@ public class XInputStreamImpl implements XInputStream } catch ( IOException e ) { - throw new com.sun.star.io.IOException( e.toString() ); + throw new com.sun.star.io.IOException(e); } } @@ -89,7 +90,7 @@ public class XInputStreamImpl implements XInputStream } catch ( IOException e ) { - throw new com.sun.star.io.IOException( e.toString() ); + throw new com.sun.star.io.IOException(e); } return bytesAvail; } @@ -102,7 +103,7 @@ public class XInputStreamImpl implements XInputStream } catch( IOException e ) { - throw new com.sun.star.io.IOException( e.toString() ); + throw new com.sun.star.io.IOException(e); } } |