Quick question to experts:
I see that InputStream reading is done using read(), i.e. one byte at a time in the Emulators (S40/S60).
Is there a reason the more efficient reads are not used?
thx
bsr
Quick question to experts:
I see that InputStream reading is done using read(), i.e. one byte at a time in the Emulators (S40/S60).
Is there a reason the more efficient reads are not used?
thx
bsr
You can use inputstream read(byte[] data) fuction to read all the data as well in byte array. if u have data in byte array u can use
DataInputStream dis = new DataInputStream(new ByteArrayInputStream(data));
this will allow u a little more flexibility and methods for reading bytes.
so i dont there is an issue of efficency here.
Regards
Nouman
It is not my code, I am talking about. It is the implementation of SVGImage.createImage() that reads a byte at a time...
I cannot force it to to do bigger reads.
oh ok SVG information was not there on ur post i thought we were talking generally.
i dont really think it would be a problem. u can use readbyte in a loop. i dont think efficency will be a real issue.
Regards
Nouman