Package com.inrupt.client
Interface Resource
-
- All Superinterfaces:
AutoCloseable
- All Known Subinterfaces:
SolidResource
- All Known Implementing Classes:
NonRDFSource
,RDFSource
,SolidContainer
,SolidNonRDFSource
,SolidRDFSource
,SolidResourceReference
,WebIdProfile
public interface Resource extends AutoCloseable
A base class for all resources.This class can be used as a basis for higher-level client applications.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentType()
The content type of the resource.InputStream
getEntity()
The resource entity.URI
getIdentifier()
The resource identifier.-
Methods inherited from interface java.lang.AutoCloseable
close
-
-
-
-
Method Detail
-
getIdentifier
URI getIdentifier()
The resource identifier.- Returns:
- the identifier
-
getContentType
String getContentType()
The content type of the resource.- Returns:
- the content type
-
getEntity
InputStream getEntity() throws IOException
The resource entity.- Returns:
- the resource entity
- Throws:
IOException
- in the case of an error when generating the entity
-
-