|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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).
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;
}
IExcel,
IPDF,
IRTF,
ITxt,
IWord| Method Summary | |
|---|---|
byte[] |
getContent()
Returns the byte stream which represents the main file of the plugin. |
byte[] |
getContent(java.util.Locale loc,
IInfoObject.LocaleOption option)
Returns the byte stream which represents the localized file of the plugin. |
long |
getContentLength()
|
java.lang.String |
getFileExtensionFromMimeType(java.lang.String fileExtension)
Returns the file extension for the mime type. |
java.io.InputStream |
getInputStream()
|
java.lang.String |
getMimeType()
Returns the MIME type for the plugin file type. |
java.lang.String |
getMimeType(java.lang.String fileExtension)
Returns the MIME type for the plugin file type. |
java.lang.String |
getMimeTypeFromFileExtension(java.lang.String mimeType)
Returns the mime type from file extension |
java.lang.Object |
getPluginProcessingInterface(java.lang.String kind)
Returns the processing interface for the object. |
void |
setMimeType(java.lang.String mimeType)
Sets the MIME type of the target object. |
void |
writeContent(java.util.Locale loc,
IInfoObject.LocaleOption option,
java.io.OutputStream output)
Uploads the content of the localized file |
void |
writeContent(java.io.OutputStream output)
|
| Method Detail |
|---|
java.lang.String getMimeType()
Returns the MIME type for the plugin file type.
getContent().IContent.getContent()java.lang.String getMimeType(java.lang.String fileExtension)
Returns the MIME type for the plugin file type. This method will try to determine the mime type by file extension if the mime type property does not exist. If a mime type cannot be determined by the file extension, the default mime type will be returned.
getContent().IContent.getContent(),
IContent.getMimeType()void setMimeType(java.lang.String mimeType)
Sets the MIME type of the target object.
mimeType - A String specifying the MIME type of the target object.java.lang.String getFileExtensionFromMimeType(java.lang.String fileExtension)
Returns the file extension for the mime type.
java.lang.String getMimeTypeFromFileExtension(java.lang.String mimeType)
Returns the mime type from file extension
byte[] getContent()
throws SDKException
Returns the byte stream which represents the main file of the plugin.
byte array containing the raw data of the object.
SDKException - This is thrown if the process is unsuccessful.
byte[] getContent(java.util.Locale loc,
IInfoObject.LocaleOption option)
throws SDKException
Returns the byte stream which represents the localized file of the plugin.
loc - A java.util.Locale that represents the locale of the fileoption - A LocaleOption see IInfoObject.LocaleOption
byte array containing the raw data of the object.
SDKException - This is thrown if the process is unsuccessful.
java.io.InputStream getInputStream()
throws SDKException
SDKException
void writeContent(java.io.OutputStream output)
throws SDKException
SDKException
void writeContent(java.util.Locale loc,
IInfoObject.LocaleOption option,
java.io.OutputStream output)
throws SDKException
Uploads the content of the localized file
loc - A java.util.Locale that represents the locale of the filesoption - A LocaleOption see IInfoObject.LocaleOptionoutput - A OutputStream that is the raw data of the file.
SDKException - This is thrown if the process is unsuccessful.
long getContentLength()
throws SDKException
SDKException
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.
kind - A String that represents the IInfoObject type.
Object that is one of IReportProcessingInfo
or IWebiProcessingInfo.
SDKException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||