public class URLCandidateChecker
extends java.lang.Object
implements java.lang.Runnable
DownloadDialog
.
The user specifies URLs (either target or digest files) via command line parameters or
directly by using the quick check field. This class scans for digest files using the
configured extensions and analyzes their contents BEFORE the download of the target
files starts (may be large e.g. ISO).
Constructor and Description |
---|
URLCandidateChecker()
Constructor method for i18n purposes only.
|
URLCandidateChecker(com.lf.commons.dialog.DownloadDialog dialog,
org.apache.commons.vfs2.FileObject[] urls,
com.lf.commons.config.Configuration options,
DigestChecker checker)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize()
Cares for proper cleanup after releasing the object.
|
org.apache.commons.vfs2.FileObject[] |
getDigestURLs()
Provides the digest URLs to be loaded and checked.
|
org.apache.commons.vfs2.FileObject[] |
getStandaloneURLs()
The target resources without any digest file reference.
|
org.apache.commons.vfs2.FileObject[] |
getTargetURLs()
Provides the target URLs to be downloaded and checked (only if not standalone).
|
void |
run()
Executable code.
|
public URLCandidateChecker() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic URLCandidateChecker(com.lf.commons.dialog.DownloadDialog dialog, org.apache.commons.vfs2.FileObject[] urls, com.lf.commons.config.Configuration options, DigestChecker checker)
dialog
- The dialog running this piece of codeurls
- The URL candidates specified by the useroptions
- The file extensions etc.checker
- The checker executableprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void run()
run
in interface java.lang.Runnable
public org.apache.commons.vfs2.FileObject[] getStandaloneURLs()
public org.apache.commons.vfs2.FileObject[] getDigestURLs()
public org.apache.commons.vfs2.FileObject[] getTargetURLs()
Copyright © 2005-2015 Leisenfels UG. All rights reserved.