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.URLgetUrl()Obtains the image URL.voidsetPngData(byte[] pngData)voidsetUrl(String url)voidsetUrl(URL url)StringtoString()-
Methods inherited from class cz.vutbr.fit.layout.rdf.model.RDFContentObject
getIri
-
-
-
-
Method Detail
-
getUrl
public URL getUrl()
Description copied from interface:ContentImageObtains the image URL.- Specified by:
getUrlin interfaceContentImage- Returns:
- The URL of the image or
nullwhen 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:ContentImageGets the PNG data of the image if available.- Specified by:
getPngDatain interfaceContentImage- Returns:
- The PNG data or
nullwhen the data is not available.
-
setPngData
public void setPngData(byte[] pngData)
-
toString
public String toString()
- Overrides:
toStringin classRDFContentObject
-
-