public final void doWrites(QueuedMediaData[] slice) {
        // empty the queue
        for (QueuedMediaData queued : slice) {
            int tmpTs = queued.getTimestamp();
            if (lastWrittenTs <= tmpTs) {
                if (queued.hasData()) {
                    // write the data
                    write(queued);
                    lastWrittenTs = tmpTs;
                    // clear the data, because we're done with it
                    queued.dispose();
                } else {
                    if (log.isTraceEnabled()) {
                        log.trace("Queued data was not available");
                    }
                }
            } else {
                // clear the data, since its too old
                queued.dispose();
            }
        }
        // clear and null-out
        slice = null;
    }
public final void doWrites ( QueuedMediaData [ ] slice ) { for ( QueuedMediaData queued : slice ) { int tmpTs = queued . getTimestamp ( ) ; if ( lastWrittenTs <= tmpTs ) { if ( queued . hasData ( ) ) { write ( queued ) ; lastWrittenTs = tmpTs ; queued . dispose ( ) ; } else { if ( log . isTraceEnabled ( ) ) { log . trace ( "Queued data was not available" ) ; } } } else { queued . dispose ( ) ; } } slice = null ; }
Write a slice of the queued items to the writer.

@param slice
set of queued data