Author: echatellier Date: 2009-12-14 17:02:55 +0100 (Mon, 14 Dec 2009) New Revision: 1700 Modified: trunk/src/main/java/org/nuiton/util/FileUtil.java Log: Add @since in javadoc Modified: trunk/src/main/java/org/nuiton/util/FileUtil.java =================================================================== --- trunk/src/main/java/org/nuiton/util/FileUtil.java 2009-12-07 14:22:14 UTC (rev 1699) +++ trunk/src/main/java/org/nuiton/util/FileUtil.java 2009-12-14 16:02:55 UTC (rev 1700) @@ -948,6 +948,7 @@ * @param cb nio buffer * @return matching lines (or {code null} if no matching lines) * @throws IOException + * @since 1.1.2 */ protected static List<CharSequence> grep(String regex, CharBuffer cb) { @@ -996,6 +997,7 @@ * @param encoding encoding to use * @return matching lines (or {code null} if no matching lines) * @throws IOException + * @since 1.1.2 */ public static List<CharSequence> grep(String searchRegex, File f, String encoding) throws IOException { @@ -1030,6 +1032,7 @@ * @param encoding encoding to use * @return all matching lines for each files * @throws IOException + * @since 1.1.2 */ public static Map<File, List<CharSequence>> grep(String searchRegex, File rootDirectory, String fileRegex, String encoding) throws IOException { Map<File, List<CharSequence>> results = new HashMap<File, List<CharSequence>>(); @@ -1051,6 +1054,7 @@ * @param encoding encoding to use * @return all matching lines for each files * @throws IOException + * @since 1.1.2 */ public static Map<File, List<CharSequence>> grep(String searchRegex, String fileRegex, String encoding) throws IOException { Map<File, List<CharSequence>> results = grep(searchRegex, new File("."), fileRegex, encoding); @@ -1067,6 +1071,7 @@ * @param file File which sed shall be applied * @param encoding charset encoding * @throws IOException + * @since 1.1.2 */ public static void sed(String searchRegex, String replace, File file, String encoding) throws IOException { @@ -1105,6 +1110,7 @@ * @param fileRegex regex for file to find in {@code rootDirectory} * @param encoding encoding to use * @throws IOException + * @since 1.1.2 */ public static void sed(String searchRegex, String replace, File rootDirectory, String fileRegex, String encoding) throws IOException { List<File> files = FileUtil.find(rootDirectory, fileRegex, true);
participants (1)
-
echatellier@users.nuiton.org