Package org.verapdf.processor
Class ProcessorFactory
java.lang.Object
org.verapdf.processor.ProcessorFactory
- Version:
- 0.1 Created 30 Oct 2016:22:18:23
- Author:
- Carl Wilson carlwilson AT github
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessorConfigconfigFromXml(InputStream source) static voidconfigToXml(ProcessorConfig toConvert, OutputStream stream, boolean format) static final ItemProcessorcreateProcessor(ProcessorConfig config) static ProcessorConfigstatic final BatchProcessorfileBatchProcessor(ProcessorConfig config) static ProcessorConfigfromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks) static ProcessorConfigfromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, String mdFolder) static ProcessorConfigfromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile) static ProcessorConfigfromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile, String mdFolder) static final BatchProcessingHandlergetHandler(FormatOption option, boolean isVerbose, boolean logPassed) static final BatchProcessingHandlergetHandler(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed) static final BatchProcessingHandlergetHandler(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed, String wikiPath) static final BatchProcessingHandlerstatic final BatchProcessingHandlerrawResultHandler(Writer dest) static ProcessorResultresultFromXml(InputStream source) static voidresultToXml(ProcessorResult toConvert, OutputStream stream, boolean prettyXml) static TaskResulttaskResultFromXml(InputStream source) static voidtaskResultToXml(TaskResult toConvert, OutputStream dest, boolean prettyXml) static voidwriteSingleResultReport(ProcessorResult toConvert, BatchProcessingHandler tmpHandler, ProcessorConfig config)
-
Method Details
-
defaultConfig
-
fromValues
public static ProcessorConfig fromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks) -
fromValues
public static ProcessorConfig fromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, String mdFolder) -
fromValues
public static ProcessorConfig fromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile) -
fromValues
public static ProcessorConfig fromValues(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile, String mdFolder) -
configToXml
public static void configToXml(ProcessorConfig toConvert, OutputStream stream, boolean format) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
configFromXml
public static ProcessorConfig configFromXml(InputStream source) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
createProcessor
-
fileBatchProcessor
-
rawResultHandler
- Throws:
VeraPDFException
-
rawResultHandler
- Throws:
VeraPDFException
-
getHandler
public static final BatchProcessingHandler getHandler(FormatOption option, boolean isVerbose, boolean logPassed) throws VeraPDFException - Throws:
VeraPDFException
-
getHandler
public static final BatchProcessingHandler getHandler(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed) throws VeraPDFException - Throws:
VeraPDFException
-
getHandler
public static final BatchProcessingHandler getHandler(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed, String wikiPath) throws VeraPDFException - Throws:
VeraPDFException
-
resultToXml
public static void resultToXml(ProcessorResult toConvert, OutputStream stream, boolean prettyXml) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
writeSingleResultReport
public static void writeSingleResultReport(ProcessorResult toConvert, BatchProcessingHandler tmpHandler, ProcessorConfig config) throws VeraPDFException - Throws:
VeraPDFException
-
resultFromXml
public static ProcessorResult resultFromXml(InputStream source) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
taskResultToXml
public static void taskResultToXml(TaskResult toConvert, OutputStream dest, boolean prettyXml) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-
taskResultFromXml
public static TaskResult taskResultFromXml(InputStream source) throws jakarta.xml.bind.JAXBException - Throws:
jakarta.xml.bind.JAXBException
-