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:
getInputStream
in interfaceSource
- Throws:
IOException
SourceNotFoundException
-
getURI
-
getScheme
-
getValidity
- Specified by:
getValidity
in interfaceSource
-
getName
Description copied from interface:NamedSource
Returns the name of this source.- Specified by:
getName
in interfaceNamedSource
- Returns:
- the name of this source.
-
refresh
-
getMimeType
- Specified by:
getMimeType
in interfaceSource
-
getContentLength
- Specified by:
getContentLength
in interfaceSource
-
getLastModified
- Specified by:
getLastModified
in interfaceSource
-