Skip to content

JTS GWT

metteo edited this page Feb 1, 2015 · 1 revision

JTS GWT module build process contains additional stages which make it possible to compile it using GWT:

  1. Copying with Exclusion. Classes which are unneeded in GWT are excluded during copying from JTS Core to JTS GWT. Sample classes:
    • File access related
    • JVM specific like Memory monitoring class
  2. Preprocessing. Methods which are not available are removed/replaced with similar ones.
    • clone() is commented out and occurrences where replaced with equivalent copy()
    • IO method / class usage is removed/replaced with compatible equivalents.
  3. Super sourcing. APIs used in the core which have a replacement in GWT are abstracted into separate class, which also exists in JTS GWT project. Also classes missing from GWT emulation but simple enough to implement are provided as super source implementations.
    • DecimalFormat in JVM replaced with NumberFormat in GWT
    • java.io.Writer and java.io.StringWriter super sources.
Clone this wiki locally