Re: Converting XInputStream to java.io.InputStream

2013-06-24 Thread Jürgen Schmidt
On 6/22/13 8:11 AM, Rajath Shashidhara wrote: Hello, I wanted to convert an XInputStream into java.io.InputStream. I found this on the mail archive. http://markmail.org/message/fo2txhbgxu3ksnct This is a very old mail. So, just asking if such a conversion api has been defined now. What

Converting XInputStream to java.io.InputStream

2013-06-22 Thread Rajath Shashidhara
Hello, I wanted to convert an XInputStream into java.io.InputStream. I found this on the mail archive. http://markmail.org/message/fo2txhbgxu3ksnct This is a very old mail. So, just asking if such a conversion api has been defined now. What is the best way to do this conversion? -- Rajath S

XInputStream

2013-06-18 Thread Rajath Shashidhara
Hello, The methods readBytes and readSomeBytes have an argument Byte[][] . But shouldn't it be Byte[] ? because java.io.InputStream reads to a byte[]? What is the point of having a byte [][]? This example also suggests this: http://forum.openoffice.org/en/forum/viewtopic.php?t=3801 They copy

Re: XInputStream

2013-06-18 Thread Rajath Shashidhara
Hello, Also in the file XInputStream implementation, readSomeBytes() implementation just calls readBytes() method. Code: sal_Int32 SAL_CALL XInputStream_impl::readSomeBytes( uno::Sequence sal_Int8 aData, sal_Int32 nMaxBytesToRead ) throw( io::NotConnectedException, io

Re: XInputStream

2013-06-18 Thread Jürgen Schmidt
On 6/18/13 5:04 PM, Rajath Shashidhara wrote: Hello, Also in the file XInputStream implementation, readSomeBytes() implementation just calls readBytes() method. Code: sal_Int32 SAL_CALL XInputStream_impl::readSomeBytes( uno::Sequence sal_Int8 aData, sal_Int32 nMaxBytesToRead