Class LatLon.Processor

  • All Implemented Interfaces:
    io.annot8.api.components.Annot8Component, io.annot8.api.components.Processor, AutoCloseable
    Enclosing class:
    LatLon

    public static class LatLon.Processor
    extends AbstractTextProcessor
    • Constructor Summary

      Constructors 
      Constructor Description
      Processor​(boolean lonLat, int minDP)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static String normalizeQuotesAndDots​(String s)
      Replace smart quotes, curly quotes, back ticks and mid-dots with standard quotes and dots to simplify the required regular expressions.
      protected void process​(io.annot8.common.data.content.Text content)  
      • Methods inherited from class io.annot8.components.base.processors.AbstractContentProcessor

        accept, process
      • Methods inherited from class io.annot8.common.components.AbstractComponent

        createDefaultLogger, createDefaultMetrics, log, metrics, setLogger, setMetrics
      • Methods inherited from interface io.annot8.api.components.Annot8Component

        close
    • Constructor Detail

      • Processor

        public Processor​(boolean lonLat,
                         int minDP)
    • Method Detail

      • process

        protected void process​(io.annot8.common.data.content.Text content)
        Specified by:
        process in class io.annot8.components.base.processors.AbstractContentProcessor<io.annot8.common.data.content.Text>
      • normalizeQuotesAndDots

        public static String normalizeQuotesAndDots​(String s)
        Replace smart quotes, curly quotes, back ticks and mid-dots with standard quotes and dots to simplify the required regular expressions.

        Symbols are replaced with the same number of characters (one-to-one replacement) so that character offsets are not affected.