OracleAS Syndication Services API Reference
10g (9.0.4)

Part No. B10399-01

oracle.syndicate.message.pkg
Interface ContentAccessor


public interface ContentAccessor

A ContentAccessor is used to access content associated with an package item. The accessor hides the details of acquiring an InputSteam over the content to be delivered. It can also perform lazy opening of the content delaying till the call to the openStream method.

Since:
release specific (what release of product did this appear in)

Method Summary
 void close()
          Close method: implementations should close the input stream returned by openStream and release resources associated with this accessor.
 java.io.InputStream openStream()
          Returns an InputSteam over the content to be delivered.

 

Method Detail

openStream

public java.io.InputStream openStream()
                               throws SyndicateException
Returns an InputSteam over the content to be delivered. The details of the content in the stream must be derived by the PackageItem used to obtain this accessor.

close

public void close()
           throws SyndicateException
Close method: implementations should close the input stream returned by openStream and release resources associated with this accessor.

Copyright © 2001, 2003, Oracle. All rights reserved.

Copyright © 2001, 2003, Oracle. All rights reserved.