public void checkNotification ( int result ) { // Is a notification required? chunk += result ; if ( chunk >= chunkSize ) { if ( listener != null ) listener . onStreamNotification ( this , chunk ) ; // Start a new chunk chunk = 0 ; } }
Checks whether a notification is required and notifies as appropriate