JsonCollectionParser icon indicating copy to clipboard operation
JsonCollectionParser copied to clipboard

Support for parsing progress

Open peterpp opened this issue 8 years ago • 3 comments

JsonStreamingParser is able to report progress of file parsing. It will be really handful to have this progress, because processing of large file can take a lot of time.

The only what you need is to add function "filePosition" to your Listener and add propagate progress values to callback (or add another callback).

peterpp avatar Aug 12 '16 20:08 peterpp

@peterpp Sorry for such a long silence, I will try to implement this soon.

MAXakaWIZARD avatar Oct 31 '16 17:10 MAXakaWIZARD

@peterpp Currently all that parser can do - just pass lineNumber and charNumber. We can't even calculate progress percentage. Any thoughts on how line numbers and/or char numbers can be helpful?

MAXakaWIZARD avatar Oct 31 '16 23:10 MAXakaWIZARD

Just had to implement this in https://github.com/p1ratrulezzz/JsonCollectionParser/commit/b6c1563c7ac3b5519c364b7b30369e22bfe6806d#diff-1041b02aae148a89853dc0d2710afc9cR194

At least it works with files, maybe can be helpful

p1ratrulezzz avatar Mar 08 '19 15:03 p1ratrulezzz