public class URLResult
extends java.lang.Object
Constructor and Description |
---|
URLResult()
Constructor method for i18n purposes only.
|
URLResult(org.apache.commons.vfs2.FileObject target,
int type,
int status,
java.lang.String comment,
int digests,
java.io.File downloaded)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(URLResult tocheck)
Checks wether a given
URLResult instance is equal to this. |
java.lang.String |
getComment()
Getter for comment.
|
int |
getDigests()
Getter for checksums.
|
java.io.File |
getDownloaded()
Getter for downloaded file.
|
int |
getStatus()
Getter for status.
|
int |
getType()
Getter for URL type.
|
org.apache.commons.vfs2.FileObject |
getURL()
Getter for digest URL.
|
void |
setComment(java.lang.String comment)
Setter for comment.
|
void |
setDownloaded(java.io.File downloaded)
Setter for downloaded file.
|
void |
setStatus(int status)
Setter for status.
|
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public URLResult() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic URLResult(org.apache.commons.vfs2.FileObject target, int type, int status, java.lang.String comment, int digests, java.io.File downloaded)
target
- The checked digest URL (required)type
- The URL type (required)status
- Status of generation (required)comment
- Optional comment like error messagesdigests
- The number of checksums in the URL, -1 = not availabledownloaded
- Set if the URL has been downloaded and is checked locally (quick check)java.lang.NullPointerException
- If the URL is null
java.lang.IllegalArgumentException
- If at least one of the parameters is invalidpublic java.lang.String toString()
java.lang.Object.toString
.
toString
in class java.lang.Object
public boolean equals(URLResult tocheck)
URLResult
instance is equal to this.
tocheck
- The instance to be comparedURLResult
instance to check for equalitypublic org.apache.commons.vfs2.FileObject getURL()
public int getType()
public int getStatus()
public void setStatus(int status)
status
- The statuspublic java.lang.String getComment()
public void setComment(java.lang.String comment)
comment
- The commentpublic int getDigests()
public void setDownloaded(java.io.File downloaded)
downloaded
- The file reference, null
otherwisepublic java.io.File getDownloaded()
null
if not setCopyright © 2005-2015 Leisenfels UG. All rights reserved.