public class FileReplace extends Object
| Constructor and Description |
|---|
FileReplace() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
FileReplace_case(String fileString,
String regex,
String replacement)
方法说明:
大小写敏感替换原文件中的字符串
CreateTime Apr 17, 2009 11:56:48 PM
|
static boolean |
FileReplace_case(String fileString,
String regex,
String replacement,
boolean matchCase)
方法说明:
是否以大小写敏感方式替换原文件中的字符串
CreateTime Apr 17, 2009 11:55:41 PM
|
static String |
FileReplaceOutTemp(String fileString,
String regex,
String replacement)
方法说明:
大小写敏感替换文件中的字符串返回新文件
CreateTime Apr 17, 2009 11:48:03 PM
|
static String |
FileReplaceOutTemp(String fileString,
String regex,
String replacement,
boolean matchCase)
方法说明:
是否以大小写敏感替换文件中的字符串返回新文件
CreateTime Apr 18, 2009 1:09:50 AM
|
boolean |
FolderOfAll(String fileName,
List type,
String regex,
String replacement,
boolean matchCase)
方法说明:
是否以大小写敏感替换某路径下指定类型的文件中的指定字符串
CreateTime Apr 18, 2009 1:55:41 PM
|
boolean |
FolderOfAll(String fileName,
String regex,
String replacement)
方法说明:
大小写敏感替换文件目录中的所有文件中指定的字符串
CreateTime Apr 18, 2009 1:57:37 PM
|
public static String FileReplaceOutTemp(String fileString, String regex, String replacement, boolean matchCase) throws IOException
fileString - 文件绝对路径regex - 用来匹配替换的正则表达式replacement - 替换后的字符串matchCase - 是否大小写敏感IOException - io异常public static String FileReplaceOutTemp(String fileString, String regex, String replacement)
fileString - 文件绝对路径regex - 用来匹配替换的正则表达式replacement - 替换后的字符串public static boolean FileReplace_case(String fileString, String regex, String replacement, boolean matchCase) throws IOException
fileString - 文件绝对路径regex - 用来匹配替换的正则表达式replacement - 替换后的字符串matchCase - 是否大小写敏感IOException - io异常public static boolean FileReplace_case(String fileString, String regex, String replacement) throws IOException
fileString - 文件绝对路径regex - 用来匹配替换的正则表达式replacement - 替换后的字符串IOException - IO异常public boolean FolderOfAll(String fileName, String regex, String replacement) throws IOException
fileName - 目录regex - 用来匹配替换的正则表达式replacement - 替换后的字符串IOException - IO异常public boolean FolderOfAll(String fileName, List type, String regex, String replacement, boolean matchCase) throws IOException
fileName - 文件绝对路径type - 文件类型 如(java,htm,html,jsp)regex - 用来匹配替换的正则表达式replacement - 替换后的字符串matchCase - 是否大小写敏感IOException - IO异常Copyright © 2017. All rights reserved.