Package org.mycore.mets.tools
Class MCRGoobiMetsPostUploadProcessor
java.lang.Object
org.mycore.frontend.fileupload.MCRPostUploadFileProcessor
org.mycore.mets.tools.MCRGoobiMetsPostUploadProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isProcessable
(String path) Checks a file if it is processable.processFile
(String path, Path tempFile, Supplier<Path> tempFileSupplier)
-
Constructor Details
-
MCRGoobiMetsPostUploadProcessor
public MCRGoobiMetsPostUploadProcessor()
-
-
Method Details
-
isProcessable
Description copied from class:MCRPostUploadFileProcessor
Checks a file if it is processable.- Specified by:
isProcessable
in classMCRPostUploadFileProcessor
- Parameters:
path
- to the temp file- Returns:
- true if this
MCRPostUploadFileProcessor
can process this file
-
processFile
public Path processFile(String path, Path tempFile, Supplier<Path> tempFileSupplier) throws IOException - Specified by:
processFile
in classMCRPostUploadFileProcessor
- Parameters:
path
- the actual relative path in the derivatetempFile
- the actual path to the temporary filetempFileSupplier
- a supplier which creates a new temporary file which can be used for processing.- Returns:
- the
Path
of the final file, which was provided by the tempFileSupplier - Throws:
IOException
- if the processing failed
-