public void addListener(ResourceDownloaderListener l) { listeners.add(l); if (result_informed) { if (result_informed_data instanceof InputStream) { l.completed(this, (InputStream) result_informed_data); } else { l.failed(this, (ResourceDownloaderException) result_informed_data); } } }
protected void addChild(ResourceDownloaderBaseImpl kid) { children.add(kid); }