Package dev.gmitch215.bytebox.time
Class ZoneResources
java.lang.Object
dev.gmitch215.bytebox.time.ZoneResources
- All Implemented Interfaces:
org.teavm.extension.spi.resources.ResourcesPolicy
public final class ZoneResources
extends Object
implements org.teavm.extension.spi.resources.ResourcesPolicy
Copies the timezone database into the module when
ZoneHistory is in the program, and
only then.
Found through META-INF/services, like the substitution policies. The compiler hands a
resources policy the names of the classes the program kept, so a program that never links
ZoneHistory gets no 108 KB data segment.
- Since:
- 1.0.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]supplyResources(Collection<? extends String> availableClassNames) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.teavm.extension.spi.resources.ResourcesPolicy
initialize
-
Constructor Details
-
ZoneResources
public ZoneResources()
-
-
Method Details
-
supplyResources
- Specified by:
supplyResourcesin interfaceorg.teavm.extension.spi.resources.ResourcesPolicy
-