I have an application that calls to a JNI function that
returns an array of integers. I want to provide this array
of data as a stream to other Java apps. However the
InputStream class only provides methods for working with
arrays of bytes.
I had contemplated extending InputStream and then overriding
the read methods with methods that work with integers and
just casting my call to read with my overridden class methods.
It seems like a really ugly way to do this though. Could
someone please suggest a better (more correct) way to do
this?
Any suggestions much appreciated.
James Kimble
|
|
0
|
|
|
|
Reply
|
jkimble (57)
|
5/11/2005 7:44:06 PM |
|