![]() |
filechampion4j 0.9.8.3
File validation library for Java
|

Public Member Functions | |
| ValidationResponse (boolean isValid, String resultsInfo, String resultsDetails, String cleanFileName, byte[] fileBytes, Map< String, String > fileChecksums, String... validFilePath) | |
| boolean | isValid () |
| String | resultsInfo () |
| String | resultsDetails () |
| String | getCleanFileName () |
| byte[] | getFileBytes () |
| Map< String, String > | getFileChecksums () |
| String[] | getValidFilePath () |
Private Attributes | |
| final boolean | isValid |
| final String | resultsInfo |
| final String | resultsDetails |
| final String | cleanFileName |
| final byte[] | fileBytes |
| final Map< String, String > | fileChecksums |
| final String[] | validFilePath |
This class is used to return the results of a file validation.
Definition at line 8 of file ValidationResponse.java.
| dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse | ( | boolean | isValid, |
| String | resultsInfo, | ||
| String | resultsDetails, | ||
| String | cleanFileName, | ||
| byte[] | fileBytes, | ||
| Map< String, String > | fileChecksums, | ||
| String... | validFilePath | ||
| ) |
ValidationResponse is used to return the results of a file validation.
| isValid | (Boolean) true if the file is valid, false otherwise |
| resultsInfo | (String) a String containing the result summary of the validation |
| resultsDetails | (String) a String containing the details of the validation |
| cleanFileName | (String) the file name with all special characters replaced with underscores |
| fileBytes | (bytes[]) the file bytes |
| fileChecksums | (Map<String, String>) hash map containing the file checksums as 'algorithm' => 'checksum' |
| validFilePath | (String) optional valid file path if outputDir was set in the filechampion4j constructor |
Definition at line 27 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.cleanFileName, dev.filechampion.filechampion4j.ValidationResponse.fileBytes, dev.filechampion.filechampion4j.ValidationResponse.fileChecksums, dev.filechampion.filechampion4j.ValidationResponse.isValid, dev.filechampion.filechampion4j.ValidationResponse.resultsDetails, dev.filechampion.filechampion4j.ValidationResponse.resultsInfo, and dev.filechampion.filechampion4j.ValidationResponse.validFilePath.
| String dev.filechampion.filechampion4j.ValidationResponse.getCleanFileName | ( | ) |
Returns the file name with all special characters replaced with underscores
Definition at line 65 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.cleanFileName.
| byte[] dev.filechampion.filechampion4j.ValidationResponse.getFileBytes | ( | ) |
Returns the file bytes
Definition at line 73 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.fileBytes.
| Map< String, String > dev.filechampion.filechampion4j.ValidationResponse.getFileChecksums | ( | ) |
Returns the file SHA-256 checksum
Definition at line 81 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.fileChecksums.
| String[] dev.filechampion.filechampion4j.ValidationResponse.getValidFilePath | ( | ) |
Returns the valid file path if outputDir was set in the filechampion4j constructor
Definition at line 89 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.validFilePath.
| boolean dev.filechampion.filechampion4j.ValidationResponse.isValid | ( | ) |
Returns true if the file is valid, false otherwise
Definition at line 41 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.isValid.
| String dev.filechampion.filechampion4j.ValidationResponse.resultsDetails | ( | ) |
Returns a String containing the details of the validation
Definition at line 57 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.resultsDetails.
| String dev.filechampion.filechampion4j.ValidationResponse.resultsInfo | ( | ) |
Returns a String containing the result sammery of the validation
Definition at line 49 of file ValidationResponse.java.
References dev.filechampion.filechampion4j.ValidationResponse.resultsInfo.
|
private |
Definition at line 12 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.getCleanFileName().
|
private |
Definition at line 13 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.getFileBytes().
|
private |
Definition at line 14 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.getFileChecksums().
|
private |
Definition at line 9 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.isValid().
|
private |
Definition at line 11 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.resultsDetails().
|
private |
Definition at line 10 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.resultsInfo().
|
private |
Definition at line 15 of file ValidationResponse.java.
Referenced by dev.filechampion.filechampion4j.ValidationResponse.ValidationResponse(), and dev.filechampion.filechampion4j.ValidationResponse.getValidFilePath().