Package com.sun.identity.setup
Class InsertContent
- java.lang.Object
-
- com.sun.identity.setup.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 Summary
Constructors Constructor Description InsertContent(Pattern pattern)Creates an instance of this class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinserts(String extFile, String origFileName, String tag)Inserts a portion of one file and insert into another file.static voidmain(String[] args)
-
-
-
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 inorigFileNamewhere content is be inserted. * @throws IOException if IO operations failed.- Throws:
IOException
-
main
public static void main(String[] args)
-
-