Is there any way to get the amount of bytes read in by the XMLStreamReader, I am using a java.io.FileReader which is passed into the factory that creates the xml reader. I’m doubting this is possible with the XMLStreamReader but any work around is great.
Share
Assuming you are doing somthing like this:
You would do something like this:
Where CoutingInputStream is a class that you would need to write/find that keeps track of the number of bytes being read from the underlying InputStream object.