org.lastbamboo.common.download
Interface VisitableDownloader<StateT>

Type Parameters:
StateT - The type of object that maintains the state.
All Superinterfaces:
Downloader<StateT>
All Known Implementing Classes:
MultiSourceDownloader

public interface VisitableDownloader<StateT>
extends Downloader<StateT>

Interface for downloaders that are visitable by visitors.


Method Summary
<T> T
accept(DownloadVisitor<T> visitor)
          Accepts the specified visitor class.
 
Methods inherited from interface org.lastbamboo.common.download.Downloader
addListener, getCompleteFile, getFinalName, getIncompleteFile, getSize, getStartTime, getState, isStarted, pause, removeListener, resume, start, stop, write
 

Method Detail

accept

<T> T accept(DownloadVisitor<T> visitor)
Accepts the specified visitor class.

Type Parameters:
T - The type the visitor will return.
Parameters:
visitor - The visitor to accept.
Returns:
The return value of the visitor.


Copyright © 2013 LittleShoot. All Rights Reserved.