Ranieri Argentini <[EMAIL PROTECTED]> wrote:
> >> Usually this
> >> code uses some tyical C approaches to memory, arrays, structs, unions
and
> >> typecasts ...
> >doesn't
> >DataInputStream let you pull out varying primitive types?
>
> Hmm, it would appear it does .. how do i get the stream to pull its bytes
> from an array though? Or is an Array a child of InputStream so i can pass
> it directly to DatInputStream's only constructor?
> I'll play with it a bit as soon as i reboot into linux .. if i get it to
> work it might speed things up a bit and make code more readeable.
>

You can always use ArrayInputStream, giving the Array as the input, then use
that in the paramter to DataInputStream's constructor.

-Matt


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to