Class Txt2Html

  • All Implemented Interfaces:

    public class Txt2Html
    Ant task to convert a given set of files from Text to HTML. Inserts an HTML header including pre tags and replaces special characters with their HTML escaped equivalents.

    This task is currently used by the ant script to build our examples

    Mark Roth
    • Field Summary

      • Fields inherited from class

        target, taskName, taskType, wrapper
      • Fields inherited from class

        description, location, project
    • Constructor Summary

      Constructor Description
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFileset​( fs)
      Sets the files to be converted into HTML
      void execute()
      Perform the conversion
      void setTodir​( todir)
      Sets the directory to contain the resulting files
      • Methods inherited from class

        bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
      • Methods inherited from class

        clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
      • Methods inherited from class java.lang.Object

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

      • Txt2Html

        public Txt2Html()
    • Method Detail

      • setTodir

        public void setTodir​( todir)
        Sets the directory to contain the resulting files
        todir - The directory
      • addFileset

        public void addFileset​( fs)
        Sets the files to be converted into HTML
        fs - The fileset to be converted.
      • execute

        public void execute()
        Perform the conversion
        execute in class
        Throws: - if an error occurs during execution of this task.