Module uk.autores

Class GenerateByteArraysFromFiles

java.lang.Object
uk.autores.handling.GenerateByteArraysFromFiles
All Implemented Interfaces:
Handler

public final class GenerateByteArraysFromFiles extends Object implements Handler

Handler that, for each resource, generates a class with a name derived from the resource name using Namer.simplifyResourceName(String) and Namer.nameType(String). The class will have a static method called bytes that returns the resource as a new byte array.

Resource files over Integer.MAX_VALUE in size will result in an error during compilation.

  • Constructor Details

    • GenerateByteArraysFromFiles

      public GenerateByteArraysFromFiles()
      Ctor.
  • Method Details