Package org.mycore.csl
Class MCRCSLJSONTransformer
java.lang.Object
org.mycore.common.content.transformer.MCRContentTransformer
org.mycore.csl.MCRCSLJSONTransformer
-
Field Summary
Fields inherited from class org.mycore.common.content.transformer.MCRContentTransformer
contentDisposition, DEFAULT_CONTENT_DISPOSITION, fileExtension, mimeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the encoding of characters in the binary stream.Returns the file extension that is usually related to the transformed content.Returns the MIME type of the transformed content, may return the default mime typevoid
Called by the factory to initialize configuration of this transformertransform
(MCRContent source) Transforms MCRContent.Methods inherited from class org.mycore.common.content.transformer.MCRContentTransformer
getContentDisposition, getDefaultExtension, getDefaultMimeType, transform
-
Constructor Details
-
MCRCSLJSONTransformer
public MCRCSLJSONTransformer()
-
-
Method Details
-
init
Description copied from class:MCRContentTransformer
Called by the factory to initialize configuration of this transformer- Overrides:
init
in classMCRContentTransformer
-
getMimeType
Description copied from class:MCRContentTransformer
Returns the MIME type of the transformed content, may return the default mime type- Overrides:
getMimeType
in classMCRContentTransformer
-
getEncoding
Description copied from class:MCRContentTransformer
Returns the encoding of characters in the binary stream. Will return null if the encoding is unknown or the results does not represent character data.- Overrides:
getEncoding
in classMCRContentTransformer
-
getFileExtension
Description copied from class:MCRContentTransformer
Returns the file extension that is usually related to the transformed content.- Overrides:
getFileExtension
in classMCRContentTransformer
-
transform
Description copied from class:MCRContentTransformer
Transforms MCRContent. Subclasses implement different transformation methods- Specified by:
transform
in classMCRContentTransformer
- Throws:
IOException
-