Interface ImportExportContributor.ContentReader

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.ContentReader
Reads content data from the .gwex ZIP for this contributor. Reads are scoped to contributed/{id}/ automatically.
  • Method Summary

    Modifier and Type
    Method
    Description
    Optional<byte[]>
    read(String entryName)
    Read a named entry from this contributor's section of the ZIP.
  • Method Details

    • read

      Optional<byte[]> read(String entryName) throws IOException
      Read a named entry from this contributor's section of the ZIP.
      Parameters:
      entryName - the entry name relative to contributed/{id}/
      Returns:
      the raw bytes, or empty if not present
      Throws:
      IOException