Author: tchemit Date: 2010-01-10 20:43:12 +0100 (Sun, 10 Jan 2010) New Revision: 657 Modified: trunk/src/main/java/org/nuiton/plugin/PluginHelper.java Log: add javadoc Modified: trunk/src/main/java/org/nuiton/plugin/PluginHelper.java =================================================================== --- trunk/src/main/java/org/nuiton/plugin/PluginHelper.java 2010-01-10 19:26:45 UTC (rev 656) +++ trunk/src/main/java/org/nuiton/plugin/PluginHelper.java 2010-01-10 19:43:12 UTC (rev 657) @@ -587,6 +587,11 @@ } } + /** + * @param src the source file to read + * @return the lines of the source file. + * @throws IOException if any pb while reading file + */ public static String[] getLines(File src) throws IOException { List<String> result = new ArrayList<String>(); BufferedReader stream = new BufferedReader(new InputStreamReader(new FileInputStream(src))); @@ -599,6 +604,11 @@ return result.toArray(new String[result.size()]); } + /** + * @param src the source file to read + * @return the files instanciate from lines of the source file. + * @throws IOException if any pb while reading file + */ public static File[] getLinesAsFiles(File src) throws IOException { List<File> result = new ArrayList<File>(); for (String line : getLines(src)) {