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
A non-RDF-bearing Solid Resource.
-
Constructor Summary
ConstructorDescriptionSolidNonRDFSource
(URI identifier, String contentType, InputStream entity) Create a non-RDF-bearing Solid Resource.SolidNonRDFSource
(URI identifier, String contentType, InputStream entity, Headers headers) Create a non-RDF-bearing Solid Resource.SolidNonRDFSource
(URI identifier, String contentType, InputStream entity, Metadata metadata) Deprecated. -
Method Summary
Methods inherited from class com.inrupt.client.NonRDFSource
close, getContentType, getEntity, getHeaders, 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, getHeaders, getIdentifier
-
Constructor Details
-
SolidNonRDFSource
Create a non-RDF-bearing Solid Resource.- Parameters:
identifier
- the resource identifiercontentType
- the content typeentity
- the entity
-
SolidNonRDFSource
@Deprecated public SolidNonRDFSource(URI identifier, String contentType, InputStream entity, Metadata metadata) Deprecated.Create a non-RDF-bearing Solid Resource.- Parameters:
identifier
- the resource identifiercontentType
- the content typeentity
- the entitymetadata
- the metadata, may benull
-
SolidNonRDFSource
Create a non-RDF-bearing Solid Resource.- Parameters:
identifier
- the resource identifiercontentType
- the content typeentity
- the entityheaders
- the headers, may benull
-
-
Method Details
-
getMetadata
Get the metadata for this resource.- Specified by:
getMetadata
in interfaceSolidResource
- Returns:
- the metadata
-
SolidNonRDFSource(URI, String, InputStream, Headers)
instead