Class BinaryImportConverter
java.lang.Object
ch.tocco.nice2.entityoperation.impl.importer.converters.BinaryImportConverter
- All Implemented Interfaces:
ImportConverter
this converter tries the following:
- load a binary with input as hash
→ success
-- return binary
→ failure (any exception thrown)
-- create a new binary from input, either as pure base64 data or with a filename prefixed, separated by a semicolon
-
Constructor Summary
ConstructorDescriptionBinaryImportConverter
(BinaryFactory binaryFactory, BinaryHashingService binaryHashingService) -
Method Summary
Modifier and TypeMethodDescriptionconvertCell
(org.apache.poi.ss.usermodel.Cell input) convertString
(String input) getType()
-
Constructor Details
-
BinaryImportConverter
public BinaryImportConverter(BinaryFactory binaryFactory, BinaryHashingService binaryHashingService)
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceImportConverter
-
convertString
- Specified by:
convertString
in interfaceImportConverter
- Throws:
ImportConverterException
-
convertCell
- Specified by:
convertCell
in interfaceImportConverter
- Throws:
ImportConverterException
-