Package org.mycore.common.content
Class MCRSourceContent
java.lang.Object
org.mycore.common.content.MCRContent
org.mycore.common.content.MCRWrappedContent
org.mycore.common.content.MCRSourceContent
- Author:
- Thomas Scheffler (yagee)
-
Field Summary
Fields inherited from class org.mycore.common.content.MCRContent
docType, encoding, lastModified, length, mimeType, name, systemId, usingSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MCRSourceContent
getInstance
(String uri) Build instance of MCRSourceContent by resolving viaMCRURIResolver
Return the content as SourceReturns the systemID of the current contentMethods inherited from class org.mycore.common.content.MCRWrappedContent
asByteArray, asString, asXML, ensureXML, getBaseContent, getContentInputStream, getDocType, getETag, getInputSource, getInputStream, getMimeType, getName, getReadableByteChannel, getReusableCopy, isReusable, isUsingSession, lastModified, length, sendTo, sendTo, sendTo, sendTo, setBaseContent, setDocType, setLastModified, setMimeType, setName, setUsingSession
Methods inherited from class org.mycore.common.content.MCRContent
asDataURL, getDataURLEncoding, getEncoding, getSafeEncoding, getSimpleWeakETag, setEncoding
-
Constructor Details
-
MCRSourceContent
-
-
Method Details
-
getInstance
Build instance of MCRSourceContent by resolving viaMCRURIResolver
- Throws:
TransformerException
- thrown byMCRURIResolver.resolve(String, String)
-
getSystemId
Description copied from class:MCRContent
Returns the systemID of the current content- Overrides:
getSystemId
in classMCRWrappedContent
-
getSource
Description copied from class:MCRContent
Return the content as Source- Overrides:
getSource
in classMCRWrappedContent
- Returns:
- content as Source
- Throws:
IOException
-