Package org.osgi.service.repository
Interface RepositoryContent
-
@ProviderType public interface RepositoryContent
An accessor for the content of a resource. AllResource
objects which represent resources in aRepository
must implement this interface. A user of the resource can then cast theResource
object to this type and then obtain anInputStream
to the content of the resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.io.InputStream
getContent()
Returns a new input stream to the content of this resource.
-
-
-
Method Detail
-
getContent
java.io.InputStream getContent()
Returns a new input stream to the content of this resource. The content is represented on the resource through theosgi.content
capability. If more than one such capability is associated with the resource, the first such capability is returned.- Returns:
- A new input stream for associated content.
-
-