Hello all,

I am creating an app for Android and I need to save in two different 
variables the same part (64B) of a stream I have received 
(DataInputStream). How can I clone the stream in order to for save in two 
different variables the same part of this stream? Otherwise, how can I 
position the pointer in the stream in order to read twice the same part of 
the stream?

I am using this:

DataInputStream in;
in.read(data,0 , numBytesRead);

Thanks so much,

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/927738c1-3309-4cc2-97b2-68ea2ad4f2fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to