public abstract class DataBridgeManifestReader<M extends DataBridgeBaseManifestDto> extends Object
| Constructor and Description |
|---|
DataBridgeManifestReader() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract M |
getManifestFromReader(Reader reader,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Gets a manifest object from a reader and an object mapper.
|
M |
readJsonManifest(File jsonManifestFile)
Reads a JSON manifest file into a JSON manifest object.
|
protected void |
validateManifest(M manifest)
Validates a manifest.
|
protected abstract M getManifestFromReader(Reader reader, com.fasterxml.jackson.databind.ObjectMapper objectMapper) throws IOException
reader - the reader to read the file from.objectMapper - the object mapper.IOException - if the input file could not be read.public M readJsonManifest(File jsonManifestFile) throws IOException, IllegalArgumentException
jsonManifestFile - the JSON manifest file.IOException - if any errors were encountered reading the JSON file.IllegalArgumentException - if the manifest file has validation errors.protected void validateManifest(M manifest) throws IllegalArgumentException
manifest - the manifest to validate.IllegalArgumentException - if the manifest is not valid.Copyright © 2021. All rights reserved.