The CopyStreamAdapter will relay CopyStreamEvents to a list of listeners when either of its bytesTransferred() methods are called. Its purpose is to facilitate the notification of the progress of a copy operation performed by one of the static copyStream() methods in org.apache.commons.io.Util to multiple listeners. The static copyStream() methods invoke the bytesTransfered(long, int) of a CopyStreamListener for performance reasons and also because multiple listeners cannot be registered given that the methods are static.
@see CopyStreamEvent
@see CopyStreamListener
@see Util
@author Daniel F. Savarese
@version $Id: CopyStreamAdapter.java 489397 2006-12-21 16:28:51Z rwinston $