Class InsertWebXMLContent


  • public class InsertWebXMLContent
    extends Object
    Extracts a portion of one file and insert into another file. The portion to be extracted is defined in a Pattern; and the location to be inserted is marked with a Pattern.
    • Constructor Detail

      • InsertWebXMLContent

        public InsertWebXMLContent​(Pattern pattern)
        Creates an instance of this class.
        Parameters:
        pattern - Pattern defining the portion to be extracted.
    • Method Detail

      • inserts

        public void inserts​(String extFile,
                            String origFileName)
                     throws IOException
        Inserts a portion of one file and insert into another file.
        Parameters:
        extFile - File name of which content is to be extracted.
        origFileName - File name of which content is be inserted.
        Throws:
        IOException - if IO operations failed.
      • main

        public static void main​(String[] args)