Package org.mycore.common.content
Class MCRURLContent
java.lang.Object
org.mycore.common.content.MCRContent
org.mycore.common.content.MCRURLContent
- 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
Methods inherited from class org.mycore.common.content.MCRContent
asByteArray, asDataURL, asString, asXML, ensureXML, getContentInputStream, getDataURLEncoding, getDocType, getEncoding, getName, getReadableByteChannel, getReusableCopy, getSafeEncoding, getSimpleWeakETag, getSystemId, isReusable, isUsingSession, sendTo, sendTo, sendTo, sendTo, setDocType, setEncoding, setLastModified, setMimeType, setName, setUsingSession
-
Constructor Details
-
MCRURLContent
-
-
Method Details
-
getInputStream
Description copied from class:MCRContent
Returns content as input stream. Be sure to close this stream properly!- Specified by:
getInputStream
in classMCRContent
- Returns:
- input stream to read content from
- Throws:
IOException
-
getSource
Description copied from class:MCRContent
Return the content as Source- Overrides:
getSource
in classMCRContent
- Returns:
- content as Source
- Throws:
IOException
-
getInputSource
Description copied from class:MCRContent
Returns content as SAX input source.- Overrides:
getInputSource
in classMCRContent
- Returns:
- input source to read content from
- Throws:
IOException
-
length
Description copied from class:MCRContent
Return the length of this content.- Overrides:
length
in classMCRContent
- Returns:
- -1 if length is unknown
- Throws:
IOException
-
lastModified
Description copied from class:MCRContent
Returns the last modified time- Overrides:
lastModified
in classMCRContent
- Returns:
- -1 if last modified time is unknown
- Throws:
IOException
-
getETag
Description copied from class:MCRContent
Returns either strong or weak ETag.- Overrides:
getETag
in classMCRContent
- Returns:
- null, if no ETag could be generated
- Throws:
IOException
-
getMimeType
- Overrides:
getMimeType
in classMCRContent
- Throws:
IOException
-