Package org.mycore.common.content
Class MCRFileContent
java.lang.Object
org.mycore.common.content.MCRContent
org.mycore.common.content.MCRPathContent
org.mycore.common.content.MCRFileContent
- All Implemented Interfaces:
MCRSeekableChannelContent
Reads MCRContent from a local file.
- Author:
- Thomas Scheffler
-
Field Summary
Fields inherited from class org.mycore.common.content.MCRContent
docType, encoding, lastModified, length, mimeType, name, systemId, usingSession
-
Constructor Summary
-
Method Summary
Methods inherited from class org.mycore.common.content.MCRPathContent
asByteArray, getETag, getInputStream, getMimeType, getName, getReadableByteChannel, getSeekableByteChannel, getSystemId, lastModified, length, sendTo, sendTo, sendTo
Methods inherited from class org.mycore.common.content.MCRContent
asDataURL, asString, asXML, ensureXML, getContentInputStream, getDataURLEncoding, getDocType, getEncoding, getInputSource, getReusableCopy, getSafeEncoding, getSimpleWeakETag, isReusable, isUsingSession, sendTo, setDocType, setEncoding, setLastModified, setMimeType, setName, setUsingSession
-
Constructor Details
-
MCRFileContent
-
MCRFileContent
-
-
Method Details
-
getSource
Description copied from class:MCRContent
Return the content as Source- Overrides:
getSource
in classMCRContent
- Returns:
- content as Source
- Throws:
IOException
-