Package cz.vutbr.fit.layout.rdf.model
Class RDFContentImage
- java.lang.Object
-
- cz.vutbr.fit.layout.rdf.model.RDFContentObject
-
- cz.vutbr.fit.layout.rdf.model.RDFContentImage
-
- All Implemented Interfaces:
ContentImage
,ContentObject
,RDFResource
public class RDFContentImage extends RDFContentObject implements ContentImage
ContentImage implementation for the RDF model.- Author:
- burgetr
-
-
Constructor Summary
Constructors Constructor Description RDFContentImage(org.eclipse.rdf4j.model.IRI iri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getPngData()
Gets the PNG data of the image if available.URL
getUrl()
Obtains the image URL.void
setPngData(byte[] pngData)
void
setUrl(String url)
void
setUrl(URL url)
String
toString()
-
Methods inherited from class cz.vutbr.fit.layout.rdf.model.RDFContentObject
getIri
-
-
-
-
Method Detail
-
getUrl
public URL getUrl()
Description copied from interface:ContentImage
Obtains the image URL.- Specified by:
getUrl
in interfaceContentImage
- Returns:
- The URL of the image or
null
when the image has no URL.
-
setUrl
public void setUrl(URL url)
-
setUrl
public void setUrl(String url) throws MalformedURLException
- Throws:
MalformedURLException
-
getPngData
public byte[] getPngData()
Description copied from interface:ContentImage
Gets the PNG data of the image if available.- Specified by:
getPngData
in interfaceContentImage
- Returns:
- The PNG data or
null
when the data is not available.
-
setPngData
public void setPngData(byte[] pngData)
-
toString
public String toString()
- Overrides:
toString
in classRDFContentObject
-
-