INTEGRATION: CWS scriptingf7 (1.2.14); FILE MERGED

2004/06/12 09:01:06 npower 1.2.14.1: #i25269# changes required to support tdoc urls
Issue number:
Submitted by:
Reviewed by:
This commit is contained in:
Jens-Heiner Rechtien
2004-07-23 13:00:42 +00:00
parent ebb55cef05
commit 58b63512d7

View File

@@ -2,9 +2,9 @@
*
* $RCSfile: XInputStreamWrapper.java,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: svesik $ $Date: 2004-04-19 23:07:35 $
* last change: $Author: hr $ $Date: 2004-07-23 14:00:42 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -72,7 +72,7 @@ public class XInputStreamWrapper extends InputStream {
public int read() throws java.io.IOException
{
byte[][] byteRet = new byte[1][1];
byte[][] byteRet = new byte[1][0];
long numRead;
try {
@@ -88,6 +88,20 @@ public class XInputStreamWrapper extends InputStream {
return byteRet[0][0];
}
public int read( byte[] b ) throws java.io.IOException
{
byte[][] byteRet = new byte[1][];
byteRet[0] = b;
try
{
return m_xInputStream.readBytes( byteRet, b.length );
}
catch ( com.sun.star.io.IOException ioe)
{
throw new java.io.IOException(ioe.getMessage());
}
}
public long skip(long n) throws java.io.IOException
{
try {
@@ -118,4 +132,5 @@ public class XInputStreamWrapper extends InputStream {
throw new java.io.IOException(ioe.getMessage());
}
}
}