Class Sed


  • public class Sed
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean backup  
      (package private) java.io.File file  
      (package private) Replacer macro  
      (package private) java.io.File output  
      (package private) java.util.Map<java.util.regex.Pattern,​java.lang.String> replacements  
    • Constructor Summary

      Constructors 
      Constructor Description
      Sed​(Replacer macro, java.io.File file)  
      Sed​(java.io.File file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doIt()  
      void replace​(java.lang.String pattern, java.lang.String replacement)  
      void setBackup​(boolean b)  
      void setOutput​(java.io.File f)  
      private java.lang.String setReferences​(java.util.regex.Matcher m, java.lang.String replace)  
      • Methods inherited from class java.lang.Object

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

      • file

        final java.io.File file
      • output

        java.io.File output
      • backup

        boolean backup
      • replacements

        final java.util.Map<java.util.regex.Pattern,​java.lang.String> replacements
    • Constructor Detail

      • Sed

        public Sed​(Replacer macro,
                   java.io.File file)
      • Sed

        public Sed​(java.io.File file)
    • Method Detail

      • setOutput

        public void setOutput​(java.io.File f)
      • replace

        public void replace​(java.lang.String pattern,
                            java.lang.String replacement)
      • doIt

        public int doIt()
                 throws java.io.IOException
        Throws:
        java.io.IOException
      • setReferences

        private java.lang.String setReferences​(java.util.regex.Matcher m,
                                               java.lang.String replace)
      • setBackup

        public void setBackup​(boolean b)