- java.lang.Object
-
- uk.autores.processing.handlers.GenerateStringsFromText
-
- All Implemented Interfaces:
Handler
public class GenerateStringsFromText extends Object implements Handler
Handler
that generates classes that returns file contents asString
s.Generates a class. Class name is derived from package name using
Namer.nameType(String)
if the name property is unset.For each resource, generates a method with a name derived from the resource name using
Namer.simplifyResourceName(String)
andNamer.nameMember(String)
that returns the resource as aString
.Resource files over
Integer.MAX_VALUE
in size will result in an error during compilation.The
CharsetDecoder
is configured withCodingErrorAction.REPORT
on malformed input or unmappable characters which will result in build failures.
-
-
Constructor Summary
Constructors Constructor Description GenerateStringsFromText()
Ctor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ConfigDef>
config()
Supported config.void
handle(Context context)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.autores.handling.Handler
validConfig
-
-