public class FileResult
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_ERROR
Status for the result, finished with errors.
|
static int |
STATUS_IGNORED
Status for the result, file was ignored.
|
static int |
STATUS_OK
Status for the result, finished with success.
|
static int |
TYPE_BSD_MULTIPLE
Digest file is a BSD-compatible summary file.
|
static int |
TYPE_BSD_SINGLE
Digest file is a BSD-compatible file with one entry.
|
static int |
TYPE_CUSTOM
File is of unknown type (not a digest file).
|
static int |
TYPE_GNU_MULTIPLE
Digest file is a GNU-compatible (MD5SUM) summary file.
|
static int |
TYPE_GNU_SINGLE
Digest file is a GNU-compatible (MD5SUM) file with one entry.
|
static int |
TYPE_PGP_SINGLE
Digest file is a PGP signature file with one entry.
|
static int |
TYPE_UNKNOWN
File is of unknown type (no digests included).
|
static int |
TYPE_XML_MULTIPLE
Digest file is a Digester XML summary file.
|
static int |
TYPE_XML_SINGLE
Digest file is a Digester XML file with one entry.
|
Constructor and Description |
---|
FileResult()
Constructor method for i18n purposes only.
|
FileResult(java.io.File target,
int type,
int status,
java.lang.String comment,
int digests)
Constructor settings the initial values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(FileResult tocheck)
Checks wether a given
FileResult instance is equal to this. |
java.lang.String |
getComment()
Getter for comment.
|
int |
getDigests()
Getter for checksums.
|
java.io.File |
getFile()
Getter for digest file.
|
int |
getStatus()
Getter for status.
|
int |
getType()
Getter for file type.
|
java.lang.String |
toString()
Overrides method
java.lang.Object.toString . |
public static final int TYPE_GNU_SINGLE
public static final int TYPE_GNU_MULTIPLE
public static final int TYPE_BSD_SINGLE
public static final int TYPE_BSD_MULTIPLE
public static final int TYPE_PGP_SINGLE
public static final int TYPE_XML_SINGLE
public static final int TYPE_XML_MULTIPLE
public static final int TYPE_UNKNOWN
public static final int TYPE_CUSTOM
public static final int STATUS_OK
public static final int STATUS_ERROR
public static final int STATUS_IGNORED
public FileResult() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic FileResult(java.io.File target, int type, int status, java.lang.String comment, int digests)
target
- The generated digest file (required)type
- The file type (required)status
- Status of generation (required)comment
- Optional comment like error messagesdigests
- The number of checksums in the file (required)java.lang.NullPointerException
- If the file 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(FileResult tocheck)
FileResult
instance is equal to this.
tocheck
- The instance to be comparedFileResult
instance to check for equalitypublic java.io.File getFile()
public int getType()
public int getStatus()
public java.lang.String getComment()
public int getDigests()
Copyright © 2005-2015 Leisenfels UG. All rights reserved.