On Oct 17, 2012, at 5:56 PM, Paolo Mancini <paolo8...@gmail.com> wrote:
> Hi, > I'm using the XmlPullParser to parse a large XML file. > I need to obtain position (bytes) for each tag but I haven't found any method. > I need this cause I want to trace the progression of the parsing (with the > total length). > > Is it possible? Does somebody know another solution? You could try using InputStream.available() method to estimate how many bytes there are available for reading. It's not a bulletproof solution but might give good candidates for preloaded ByteArrayInputStreams and/or FileInputStreams. -- 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