Interface FilerResource


public interface FilerResource
A resource from output (such as target/META-INF/helidon) that can have existing values, and may be replaced with a new value.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    Existing bytes of the resource.
    void
    bytes(byte[] newBytes)
    New bytes of the resource.
    void
    Writes the new bytes to the output.
  • Method Details

    • bytes

      byte[] bytes()
      Existing bytes of the resource. Returns empty array, if the resource does not exist or is empty.
      Returns:
      bytes of the resource
    • bytes

      void bytes(byte[] newBytes)
      New bytes of the resource.
      Parameters:
      newBytes - new bytes to write() to the resource file
    • write

      void write()
      Writes the new bytes to the output. This operation can only be called once per codegen round.