Package org.verapdf.processor
Class ProcessorFactory
- java.lang.Object
-
- org.verapdf.processor.ProcessorFactory
-
public final class ProcessorFactory extends Object
- Version:
- 0.1 Created 30 Oct 2016:22:18:23
- Author:
- Carl Wilson carlwilson AT github
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProcessorFactory.BatchSummariser
-
Method Summary
-
-
-
Method Detail
-
defaultConfig
public static ProcessorConfig 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
public static ProcessorConfig configFromXml(InputStream source) throws JAXBException
- Throws:
JAXBException
-
createProcessor
public static final ItemProcessor createProcessor(ProcessorConfig config)
-
fileBatchProcessor
public static final BatchProcessor fileBatchProcessor(ProcessorConfig config)
-
rawResultHandler
public static final BatchProcessingHandler rawResultHandler() throws VeraPDFException
- Throws:
VeraPDFException
-
rawResultHandler
public static final BatchProcessingHandler rawResultHandler(Writer dest) throws VeraPDFException
- 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
public static ProcessorResult resultFromXml(InputStream source) throws JAXBException
- Throws:
JAXBException
-
taskResultToXml
public static void taskResultToXml(TaskResult toConvert, OutputStream dest, boolean prettyXml) throws JAXBException
- Throws:
JAXBException
-
taskResultfromXml
public static TaskResult taskResultfromXml(InputStream source) throws JAXBException
- Throws:
JAXBException
-
-