Class MCRToPrettyXML
java.lang.Object
org.mycore.common.content.transformer.MCRContentTransformer
org.mycore.common.content.transformer.MCRToPrettyXML
Transforms xml content in pretty, UTF-8 encoded format.
- Author:
- Frank Lützenkirchen
-
Field Summary
Fields inherited from class org.mycore.common.content.transformer.MCRContentTransformer
contentDisposition, DEFAULT_CONTENT_DISPOSITION, fileExtension, mimeType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the encoding of characters in the binary stream.Returns the MIME type of the transformed content, may return the default mime typetransform
(MCRContent source) Transforms MCRContent.Methods inherited from class org.mycore.common.content.transformer.MCRContentTransformer
getContentDisposition, getDefaultMimeType, getFileExtension, init, transform
-
Constructor Details
-
MCRToPrettyXML
public MCRToPrettyXML()
-
-
Method Details
-
transform
Description copied from class:MCRContentTransformer
Transforms MCRContent. Subclasses implement different transformation methods- Specified by:
transform
in classMCRContentTransformer
- Throws:
IOException
-
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
-
getDefaultExtension
- Overrides:
getDefaultExtension
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
- Throws:
Exception
-