public class SaveOptions extends Object
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
final SaveOptions saveOptions = new SaveOptions();
saveOptions.setPassword("passw");
comparer.compare(resultFile, saveOptions);
}
Comparer| Modifier and Type | Class and Description |
|---|---|
static class |
SaveOptions.Builder
A
SaveOptions builder. |
| Constructor and Description |
|---|
SaveOptions()
Initializes a new instance of the SaveOptions class.
|
| Modifier and Type | Method and Description |
|---|---|
MetadataType |
getCloneMetadataType()
Gets a strategy of processing metadata saving result document.
|
FileAuthorMetadata |
getFileAuthorMetadata()
Gets a metadata object that will be set into result document when
setCloneMetadataType(MetadataType) is set to MetadataType.FILE_AUTHOR. |
String |
getFolderPath()
Gets a folder path to which result images will be saved.
|
String |
getPassword()
Gets a password for result document.
|
void |
setCloneMetadataType(MetadataType value)
Sets a stragegy of processing metadata saving result document.
|
void |
setFileAuthorMetadata(FileAuthorMetadata value)
Sets a metadata object that should be set into result document when
setCloneMetadataType(MetadataType) is set to MetadataType.FILE_AUTHOR. |
void |
setFolderPath(Path value)
Sets a folder path to which result images should be saved.
|
void |
setFolderPath(String value)
Sets a folder path to which result images should be saved.
|
void |
setPassword(String value)
Sets a password for result document.
|
public SaveOptions()
Initializes a new instance of the SaveOptions class.
public final MetadataType getCloneMetadataType()
Gets a strategy of processing metadata saving result document.
Possible values are in enumMetadataTypepublic final FileAuthorMetadata getFileAuthorMetadata()
Gets a metadata object that will be set into result document when setCloneMetadataType(MetadataType) is set to MetadataType.FILE_AUTHOR.
public final String getFolderPath()
Gets a folder path to which result images will be saved.
Used for Imaging Comparison only.public final String getPassword()
Gets a password for result document.
public final void setCloneMetadataType(MetadataType value)
Sets a stragegy of processing metadata saving result document.
Possible values are in enumMetadataTypevalue - The stragegy of processing metadatapublic final void setFileAuthorMetadata(FileAuthorMetadata value)
Sets a metadata object that should be set into result document when setCloneMetadataType(MetadataType) is set to MetadataType.FILE_AUTHOR.
value - The metadata objectpublic final void setFolderPath(Path value)
Sets a folder path to which result images should be saved.
Used for Imaging Comparison only.value - The folder path to save result imagespublic final void setFolderPath(String value)
Sets a folder path to which result images should be saved.
Used for Imaging Comparison only.value - The folder path to save result imagespublic final void setPassword(String value)
Sets a password for result document.
value - The passwordCopyright © 2024. All rights reserved.