Interface Converter
public interface Converter
Implementations of this interface are responsible for converting between an
InputStream
and an
IRepositoryFileData
.
Added support for using just fileId and assume converter encapsulates all necessary logic for getting file data and
conversion- Author:
- mlowery
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(InputStream inputStream, String charset, String mimeType) convert
(Serializable fileId) convert
(IRepositoryFileData data) default void
Invoked for further processing of content after it was saved to repository.
-
Method Details
-
convert
IRepositoryFileData convert(InputStream inputStream, String charset, String mimeType) throws ConverterException - Parameters:
inputStream
-charset
-mimeType
-- Returns:
- Throws:
ConverterException
-
convert
- Parameters:
data
-- Returns:
-
convert
- Parameters:
fileId
-- Returns:
-
convertPostRepoSave
Invoked for further processing of content after it was saved to repository.- Parameters:
file
- repository file where content was stored in.
-