Re: [Simple-support] Monitoring deserialisation progress
Brought to you by:
niallg
|
From: Dawid W. <daw...@gm...> - 2012-08-22 11:15:07
|
If you know the size of the input (and can access it) then wrap your input stream or input reader and count the bytes read so far yourself, possibly calling back a hook every few kilobytes. In general this isn't possible since streaming access doesn't have the notion of "size". For inputs such as files or in-memory buffers you can do it yourself. Dawid On Wed, Aug 22, 2012 at 1:04 PM, Andrew Spinner <and...@ti...> wrote: > Hello, > > Is there any way to monitor the progress of the deserialisation process? > Form a user perspective, it would ideally be useful for the Persister to > assess the size of the XML file and notify a listener of the percentage > complete/remaining. > > I don't immediately see an easy way to implement it, but presumably it would > involve attaching listeners to the Persister object. > > In any case, it's a suggestion for a possible new feature at some stage. > > Thanks, > > Andrew > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |