public interface ImportManager
| Modifier and Type | Method and Description |
|---|---|
ImportLog |
importArchive(org.apache.commons.compress.archivers.ArchiveInputStream stream,
String logMessage)
Import multiple items via an archive input stream.
|
ImportLog |
importFile(String filePath,
String logMessage)
Import a file by specifying its path.
|
ImportLog |
importFiles(List<String> filePaths,
String logMessage)
Import multiple files via a list of file paths.
|
default ImportLog |
importInputStream(InputStream stream,
String logMessage)
Import an item via an input stream.
|
ImportLog |
importInputStream(InputStream stream,
String tag,
String logMessage)
Import an item via an input stream.
|
ImportLog importFile(String filePath, String logMessage) throws IOException, InputParseError, ValidationError
filePath - path to the file to importlogMessage - an optional message to describe the importIOException - when reading or writing files failsInputParseError - when parsing the file failsValidationError - when the content of the file is invaliddefault ImportLog importInputStream(InputStream stream, String logMessage) throws IOException, InputParseError, ValidationError
stream - the input streamlogMessage - an optional log message to describe the importIOException - when reading or writing failsInputParseError - when parsing the stream data failsValidationError - when the content of the file is invalidImportLog importInputStream(InputStream stream, String tag, String logMessage) throws IOException, InputParseError, ValidationError
stream - the input streamtag - an optional tag identifying the source of the streamlogMessage - an optional log message to describe the importIOException - when reading or writing failsInputParseError - when parsing the stream data failsValidationError - when the content of the file is invalidImportLog importFiles(List<String> filePaths, String logMessage) throws IOException, InputParseError, ValidationError
filePaths - a list of file pathslogMessage - an optional log message to describe the importIOException - when reading or writing failsInputParseError - when parsing the stream data failsValidationError - when the content of the file is invalidImportLog importArchive(org.apache.commons.compress.archivers.ArchiveInputStream stream, String logMessage) throws IOException, InputParseError, ValidationError
stream - the archive input streamlogMessage - an optional log message to describe the importIOException - when reading or writing failsInputParseError - when parsing the stream data failsValidationError - when the content of the file is invalidCopyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.