Revision: 7363 http://languagetool.svn.sourceforge.net/languagetool/?rev=7363&view=rev Author: dnaber Date: 2012-06-16 09:40:07 +0000 (Sat, 16 Jun 2012) Log Message: ----------- deprecate streamToString(InputStream), which is not used anyway (but it's public so we deprecate it instead of just deleting it)
Modified Paths: -------------- trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java Modified: trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java =================================================================== --- trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java 2012-06-16 09:28:02 UTC (rev 7362) +++ trunk/JLanguageTool/src/java/org/languagetool/tools/StringTools.java 2012-06-16 09:40:07 UTC (rev 7363) @@ -105,8 +105,7 @@ * <code>\n</code> * @throws IOException */ - public static String readFile(final InputStream file, final String encoding) - throws IOException { + public static String readFile(final InputStream file, final String encoding) throws IOException { InputStreamReader isr = null; BufferedReader br = null; final StringBuilder sb = new StringBuilder(); @@ -238,6 +237,9 @@ return sb.toString(); } + /** + * @deprecated use {@link #streamToString(java.io.InputStream, String)} instead (deprecated since 1.8) + */ public static String streamToString(final InputStream is) throws IOException { final InputStreamReader isr = new InputStreamReader(is); try { @@ -264,7 +266,7 @@ } /** - * Escapes these characters: less than, bigger than, quote, ampersand. + * Escapes these characters: less than, greater than, quote, ampersand. */ public static String escapeHTML(final String s) { // this version is much faster than using s.replaceAll This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Languagetool-cvs mailing list Languagetool-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-cvs