Methods Summary |
---|
public void | addListener(ResourceDownloaderListener l)
getDelegate();
delegate.addListener(l);
|
public void | asyncDownload()
getDelegate();
delegate.asyncDownload();
|
public void | cancel()
setCancelled();
getDelegate();
delegate.cancel();
|
public java.io.InputStream | download()
getDelegate();
return( delegate.download());
|
public ResourceDownloaderBaseImpl | getClone(ResourceDownloaderBaseImpl parent)
ResourceDownloaderDelayedImpl c = new ResourceDownloaderDelayedImpl( parent, factory );
c.setSize( size );
c.setProperties( this );
return( c );
|
protected void | getDelegate()
try{
this_mon.enter();
if ( delegate == null ){
try{
delegate = (ResourceDownloaderBaseImpl)factory.create();
delegate.setParent( this );
if ( size >= 0 ){
delegate.setSize( size );
}
}catch( ResourceDownloaderException e ){
delegate = new ResourceDownloaderErrorImpl( this, e );
}
}
}finally{
this_mon.exit();
}
|
public java.lang.String | getName()
if ( delegate == null ){
return( "<...>" );
}
return( delegate.getName());
|
public long | getSize()
getDelegate();
return( delegate.getSize());
|
public void | removeListener(ResourceDownloaderListener l)
getDelegate();
delegate.removeListener(l);
|
public void | reportActivity(java.lang.String activity)
getDelegate();
delegate.reportActivity( activity );
|
protected void | setProperty(java.lang.String name, java.lang.Object value)
setPropertySupport( name, value );
if ( delegate != null ){
delegate.setProperty( name, value );
}
|
protected void | setSize(long _size)
size = _size;
if ( delegate != null && size >= 0){
delegate.setSize( size );
}
|