com.crystaldecisions.sdk.occa.infostore
Interface IContent

All Known Subinterfaces:
IExcel, IPDF, IPowerPoint, IReport, IRTF, ITxt, IWord

public interface IContent

This interface defines functions used by desktop plugins that export to a particular file type. This interface is not actually returned by any objects. The only way to access this object and the methods it contains is through casting. Any desktop plugins that allow their files to be exported support this interface (listed below).

Remarks

This example demonstrates how to check if an object supports this interface and then casts it as an IContent object if it is supported:

 if ( obj instanceof IContent )
 {
 	IContent contentObj = (IContent) obj;
 }
 

See Also:
IExcel, IPDF, IRTF, ITxt, IWord

Method Summary
 byte[] getContent()
           Returns the byte stream which represents the main file of the plugin.
 java.lang.String getMimeType()
           Returns the MIME type for the plugin file type.
 java.lang.Object getPluginProcessingInterface(java.lang.String kind)
           Returns the processing interface for the object.
 

Method Detail

getMimeType

public java.lang.String getMimeType()

Returns the MIME type for the plugin file type.

Returns:
The MIME type of the data that will be returned from getContent().
See Also:
getContent()

getContent

public byte[] getContent()
                  throws SDKException

Returns the byte stream which represents the main file of the plugin.

Returns:
An byte array containing the raw data of the object.
Throws:
SDKException - This is thrown if the process is unsuccessful.

getPluginProcessingInterface

public java.lang.Object getPluginProcessingInterface(java.lang.String kind)
                                              throws SDKException

Returns the processing interface for the object. This method only applies to objects that can be scheduled.

Parameters:
kind - A String that represents the IInfoObject type.
Returns:
An Object that is one of IReportProcessingInfo or IWebiProcessingInfo.

SDKException