Interface AddEntryToOverlay


public interface AddEntryToOverlay
Provides the ability to add new entries with given data (i.e file-like entries) to the container adapted to this interface. Note that these entries may not be backed by a file on disk, so invoking methods such as getResource() and getPhysicalPath() on the resulting artifact entry may return null (depending on the underlying implementation).
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    add(String entryRelativePath, String entryData)
    Add a new entry to the (overlay of) the container adapted to this interface, with the entry containing the given data.
  • Method Details

    • add

      boolean add(String entryRelativePath, String entryData)
      Add a new entry to the (overlay of) the container adapted to this interface, with the entry containing the given data.
      Parameters:
      entryRelativePath - path relative to this container at which the entry should be added (an absolute path will result in no entry being added and false being returned).
      entryData - data the entry should contain.
      Returns:
      true if successful, false otherwise.