On Oct 18, 2012, at 1:50 PM, Paolo Mancini <paolo8...@gmail.com> wrote:
> Sorry, i've duplicated the topic…it's the same problem! In that case you could implement your own InputStream class which is actually only a proxy over existing InputStream. And you can count how many bytes have passed through it on the fly. For parsing you pass this proxy input stream instead and can fetch current position from it. See CountingInputStream for some ideas; http://alvinalexander.com/java/jwarehouse/commons-io-1.0/src/java/org/apache/commons/io/input/CountingInputStream.java.shtml -- H -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en