Hi,

If you have the value in one variable can you not just copy it into the 
other variable as well, instead of cloning the input stream ?

Regards

On Thursday, April 7, 2016 at 7:18:49 PM UTC+10, jvb2008 wrote:
>
> 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/e4bf8703-b73a-4a08-94ab-e0294eecc367%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to