JXTA

net.jxta.share
Interface Content

All Known Subinterfaces:
FileContent

public interface Content
extends java.io.Serializable

A Content object is used to represent shared content on a peer.


Method Summary
 ContentAdvertisement getContentAdvertisement()
          Returns the advertisement for the content.
 java.io.InputStream getInputStream()
          Returns an input stream for reading the content.
 

Method Detail

getContentAdvertisement

public ContentAdvertisement getContentAdvertisement()
Returns the advertisement for the content.

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Returns an input stream for reading the content.

JXTA