- Forum posts: 1
Apr 7, 2016, 11:25:44 AM via Website
Apr 7, 2016 11:25:44 AM via Website
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,
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.