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::BufferSizeExceededException,
           io::IOException,
           uno::RuntimeException)
{
    return readBytes( aData,nMaxBytesToRead );
}


But this behaviour is not like the one described in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/io/XInputStream.html#readBytes
.

Should I also do the same?



On Tue, Jun 18, 2013 at 7:50 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> 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 the ans to buffer[0] in buffer[][].
>
> --
> Rajath S,
> M.Sc(Hons.) Physics,
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani

Reply via email to