public class MultiplePdfSourceMultipleOutputParameters extends MultiplePdfSourceParameters implements SingleOrMultipleOutputTaskParameters
| Constructor and Description |
|---|
MultiplePdfSourceMultipleOutputParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSpecificResultFilename(String filename) |
void |
addSpecificResultFilenames(Collection<String> filenames)
Adds the given filenames to the list of the explicit filenames
|
boolean |
equals(Object other) |
SingleOrMultipleTaskOutput |
getOutput() |
String |
getOutputPrefix() |
String |
getSpecificResultFilename(int fileNumber) |
String |
getSpecificResultFilename(int fileNumber,
String expectedExtension) |
List<String> |
getSpecificResultFilenames() |
int |
hashCode() |
void |
setOutput(SingleOrMultipleTaskOutput output)
Sets the output destination
|
void |
setOutputPrefix(String outputPrefix)
Set the prefix to be used to generate names of the multiple outputs for this parameter.
|
addSource, addSources, getSourceList, removeAllSourcesgetMinRequiredPdfVersion, getVersion, isCompress, setCompress, setVersiongetExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenient, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExistingOutputPolicy, isLenient, setExistingOutputPolicy, setLenientpublic MultiplePdfSourceMultipleOutputParameters()
public String getOutputPrefix()
getOutputPrefix in interface PrefixableTaskParameterspublic void setOutputPrefix(String outputPrefix)
PrefixableTaskParameterssetOutputPrefix in interface PrefixableTaskParameterspublic SingleOrMultipleTaskOutput getOutput()
getOutput in interface TaskParameterspublic void setOutput(SingleOrMultipleTaskOutput output)
SingleOrMultipleOutputTaskParameterssetOutput in interface SingleOrMultipleOutputTaskParameterspublic void addSpecificResultFilename(String filename)
public void addSpecificResultFilenames(Collection<String> filenames)
filenames - ArrayList.addAll(Collection)public List<String> getSpecificResultFilenames()
List of names explicitly set for the output files. The first file generated by the task will be named using the first element of this list, the second
file using the second name and so on. If no valid name is found we fallback to the default names generation logic.public String getSpecificResultFilename(int fileNumber)
fileNumber - public String getSpecificResultFilename(int fileNumber, String expectedExtension)
fileNumber - expectedExtension - the expect extension (.pdf, .json, .txt).public int hashCode()
hashCode in class MultiplePdfSourceParameterspublic boolean equals(Object other)
equals in class MultiplePdfSourceParametersCopyright © 2021 sejda. All rights reserved.