Class PortletIxHelper.ResourceExporter
java.lang.Object
com.appiancorp.suiteapi.ix.data.portlet.PortletIxHelper.ResourceExporter
- Enclosing class:
- PortletIxHelper
-
Constructor Summary
ConstructorDescriptionResourceExporter
(com.appiancorp.ix.Type<H, I, U> type, U uuid, com.appiancorp.ix.ExportDriver driver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exportResource
(InputStream is, String resourceName) Exports a resource (such as a file).
-
Constructor Details
-
ResourceExporter
public ResourceExporter(com.appiancorp.ix.Type<H, I, U> type, U uuid, com.appiancorp.ix.ExportDriver driver)
-
-
Method Details
-
exportResource
Exports a resource (such as a file). Given the resource name and an input stream, this method reads the data from the stream and exports it with the specified name. NOTE: The caller is responsible for closing the input stream.- Parameters:
is
- The input stream from which to read the resource data.resourceName
- The name of the resource to export.- Throws:
AppianException
- If the given resource cannot be read from the given stream successfully.
-