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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessorConfig
configFromXml
(InputStream source) static void
configToXml
(ProcessorConfig toConvert, OutputStream stream, boolean format) static final ItemProcessor
createProcessor
(ProcessorConfig config) static ProcessorConfig
static final BatchProcessor
fileBatchProcessor
(ProcessorConfig config) static ProcessorConfig
fromValues
(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks) static ProcessorConfig
fromValues
(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, String mdFolder) static ProcessorConfig
fromValues
(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile) static ProcessorConfig
fromValues
(ValidatorConfig config, FeatureExtractorConfig featureConfig, PluginsCollectionConfig pluginsCollectionConfig, MetadataFixerConfig fixerConfig, EnumSet<TaskType> tasks, ValidationProfile customProfile, String mdFolder) static final BatchProcessingHandler
getHandler
(FormatOption option, boolean isVerbose, boolean logPassed) static final BatchProcessingHandler
getHandler
(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed) static final BatchProcessingHandler
getHandler
(FormatOption option, boolean isVerbose, OutputStream reportStream, boolean logPassed, String wikiPath) static final BatchProcessingHandler
static final BatchProcessingHandler
rawResultHandler
(Writer dest) static ProcessorResult
resultFromXml
(InputStream source) static void
resultToXml
(ProcessorResult toConvert, OutputStream stream, boolean prettyXml) static TaskResult
taskResultfromXml
(InputStream source) static void
taskResultToXml
(TaskResult toConvert, OutputStream dest, boolean prettyXml) static void
writeSingleResultReport
(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 JAXBException - Throws:
JAXBException
-
configFromXml
- Throws:
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 JAXBException - Throws:
JAXBException
-
writeSingleResultReport
public static void writeSingleResultReport(ProcessorResult toConvert, BatchProcessingHandler tmpHandler, ProcessorConfig config) throws VeraPDFException - Throws:
VeraPDFException
-
resultFromXml
- Throws:
JAXBException
-
taskResultToXml
public static void taskResultToXml(TaskResult toConvert, OutputStream dest, boolean prettyXml) throws JAXBException - Throws:
JAXBException
-
taskResultfromXml
- Throws:
JAXBException
-