Interface ImportExportContributor.ContentWriter

Enclosing interface:
ImportExportContributor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ImportExportContributor.ContentWriter
Writes content data to the .gwex ZIP for this contributor. Writes are scoped to contributed/{id}/ automatically.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(String entryName, byte[] data)
    Write a named entry to this contributor's section of the ZIP.
  • Method Details

    • write

      void write(String entryName, byte[] data) throws IOException
      Write a named entry to this contributor's section of the ZIP.
      Parameters:
      entryName - the entry name relative to contributed/{id}/
      data - the raw bytes to write
      Throws:
      IOException