Class PortletIxHelper.ResourceExporter

java.lang.Object
com.appiancorp.suiteapi.ix.data.portlet.PortletIxHelper.ResourceExporter
Enclosing class:
PortletIxHelper

public static class PortletIxHelper.ResourceExporter extends Object
  • Constructor Details

    • ResourceExporter

      public ResourceExporter(com.appiancorp.ix.Type<H,I,U> type, U uuid, com.appiancorp.ix.ExportDriver driver)
  • Method Details

    • exportResource

      public void exportResource(InputStream is, String resourceName) throws AppianException
      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.