I think you just want this:

```
in.mark(Integer.MAX_VALUE);
parseBitmap();
in.reset();
parseBitmapAgain();
```