OSGi™ Enterprise
Release 5

org.osgi.service.repository
Interface RepositoryContent


public interface RepositoryContent

An accessor for the default 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 default content of the resource.

ThreadSafe
Consumers of this API must not implement this interface

Method Summary
 java.io.InputStream getContent()
          Returns a new input stream to the default format of this resource.
 

Method Detail

getContent

java.io.InputStream getContent()
Returns a new input stream to the default format of this resource.

Returns:
A new input stream for associated resource.

OSGi™ Enterprise
Release 5

Copyright © OSGi Alliance (2000, 2012). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0