Module uk.autores

Class GenerateStringsFromText

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

public final class GenerateStringsFromText extends Object implements Handler

Handler that generates classes that returns file contents as Strings.

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 text that returns the resource as a String.

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

The CharsetDecoder is configured with CodingErrorAction.REPORT on malformed input or unmappable characters which will result in build failures.