Class InsertContent


  • public class InsertContent
    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

      • InsertContent

        public InsertContent​(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,
                            String tag)
                     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.
        tag - Tag in origFileName where content is be inserted. * @throws IOException if IO operations failed.
        Throws:
        IOException
      • main

        public static void main​(String[] args)