Top Description Methods
org.osgi.service.repository

public Interface RepositoryContent

Annotations
@ProviderType
Imports
java.io.InputStream, org.osgi.annotation.versioning.ProviderType, org.osgi.resource.Resource

An accessor for the content of a resource. All Resource objects which represent resources in a Repository must implement this interface. A user of the resource can then cast the Resource object to this type and then obtain an InputStream to the content of the resource.
Author
$Id: 786e99d180fe847e7f9cbd2c9fd2667fc18ee7bd $

Method Summary

Modifier and TypeMethod and Description
public InputStream

Returns:

A new input stream for associated content.
getContent
()

Returns a new input stream to the content of this resource.

Method Detail

getContentback to summary
public InputStream getContent()

Returns a new input stream to the content of this resource. The content is represented on the resource through the osgi.content capability. If more than one such capability is associated with the resource, the first such capability is returned.

Returns:InputStream

A new input stream for associated content.