Package org.ametys.cms.data
Class BinarySource
java.lang.Object
org.ametys.cms.data.BinarySource
- All Implemented Interfaces:
NamedSource,Source
Source representing a binary.-
Constructor Details
-
BinarySource
Constructor.- Parameters:
binary- theBinary.filename- the filename.uri- this source's uri.scheme- this source's uri's scheme
-
-
Method Details
-
exists
-
getInputStream
- Specified by:
getInputStreamin interfaceSource- Throws:
IOExceptionSourceNotFoundException
-
getURI
-
getScheme
-
getValidity
- Specified by:
getValidityin interfaceSource
-
getName
Description copied from interface:NamedSourceReturns the name of this source.- Specified by:
getNamein interfaceNamedSource- Returns:
- the name of this source.
-
refresh
-
getMimeType
- Specified by:
getMimeTypein interfaceSource
-
getContentLength
- Specified by:
getContentLengthin interfaceSource
-
getLastModified
- Specified by:
getLastModifiedin interfaceSource
-