Package com.sun.identity.setup
Class InsertWebXMLContent
- java.lang.Object
-
- com.sun.identity.setup.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 Summary
Constructors Constructor Description InsertWebXMLContent(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)Inserts a portion of one file and insert into another file.static voidmain(String[] args)
-
-
-
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)
-
-