Package com.inrupt.client.solid
Class SolidNonRDFSource
- java.lang.Object
-
- com.inrupt.client.NonRDFSource
-
- com.inrupt.client.solid.SolidNonRDFSource
-
- All Implemented Interfaces:
Resource
,SolidResource
,AutoCloseable
public class SolidNonRDFSource extends NonRDFSource implements SolidResource
A non-RDF-bearing Solid Resource.
-
-
Constructor Summary
Constructors Constructor Description SolidNonRDFSource(URI identifier, String contentType, InputStream entity)
Create a non-RDF-bearing Solid Resource.SolidNonRDFSource(URI identifier, String contentType, InputStream entity, Metadata metadata)
Create a non-RDF-bearing Solid Resource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Metadata
getMetadata()
Get the metadata for this resource.-
Methods inherited from class com.inrupt.client.NonRDFSource
close, getContentType, getEntity, getIdentifier
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.inrupt.client.Resource
getContentType, getEntity, getIdentifier
-
-
-
-
Constructor Detail
-
SolidNonRDFSource
public SolidNonRDFSource(URI identifier, String contentType, InputStream entity)
Create a non-RDF-bearing Solid Resource.- Parameters:
identifier
- the resource identifiercontentType
- the content typeentity
- the entity
-
SolidNonRDFSource
public SolidNonRDFSource(URI identifier, String contentType, InputStream entity, Metadata metadata)
Create a non-RDF-bearing Solid Resource.- Parameters:
identifier
- the resource identifiercontentType
- the content typeentity
- the entitymetadata
- the metadata, may benull
-
-
Method Detail
-
getMetadata
public Metadata getMetadata()
Get the metadata for this resource.- Specified by:
getMetadata
in interfaceSolidResource
- Returns:
- the metadata
-
-