Class ListingInjector

  • All Implemented Interfaces:
    TextSubstitutions

    public class ListingInjector
    extends java.lang.Object
    implements TextSubstitutions
    Scans for longlisting elements and injects the code from a file as a CDATA field.
    • Constructor Summary

      Constructors 
      Constructor Description
      ListingInjector​(java.io.File sourceDir)
      Create a cleaner.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String apply​(java.lang.String target)
      Apply substitutions.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ListingInjector

        public ListingInjector​(java.io.File sourceDir)
        Create a cleaner.
        Parameters:
        sourceDir - ; directory from which document source was loaded.
    • Method Detail

      • apply

        public final java.lang.String apply​(java.lang.String target)
        Apply substitutions.
        Specified by:
        apply in interface TextSubstitutions
        Parameters:
        target - original string
        Returns:
        original after applying substitutions.