Class PortletIxHelper.ResourceImporter
java.lang.Object
com.appiancorp.suiteapi.ix.data.portlet.PortletIxHelper.ResourceImporter
- Enclosing class:
- PortletIxHelper
-
Constructor Summary
ConstructorDescriptionResourceImporter
(com.appiancorp.ix.Type<H, I, U> type, U uuid, com.appiancorp.ix.ImportDriver driver) -
Method Summary
Modifier and TypeMethodDescriptionvoid
importResource
(OutputStream os, String resourceName) Imports a resource (such as a file).
-
Constructor Details
-
ResourceImporter
public ResourceImporter(com.appiancorp.ix.Type<H, I, U> type, U uuid, com.appiancorp.ix.ImportDriver driver)
-
-
Method Details
-
importResource
Imports a resource (such as a file). Given the resource name and an output stream, this method writes the data of the specified resource into the given stream. NOTE: The caller is responsible for closing the output stream.- Parameters:
os
- The output stream into which the resource data should be written.resourceName
- The name of the resource to import. This must match the name used to export the resource usingPortletIxHelper.ResourceExporter.exportResource(InputStream, String)
.- Throws:
AppianException
- If the given resource cannot be written to the given stream successfully.
-