From ff43d890afe54e742a430c75b671d518f52fceee Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Sat, 16 Apr 2005 00:44:08 +0000 Subject: [PATCH] ICU-124 charset detector, work in progress. X-SVN-Rev: 17480 --- icu4j/src/com/ibm/icu/text/CharsetMatch.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icu4j/src/com/ibm/icu/text/CharsetMatch.java b/icu4j/src/com/ibm/icu/text/CharsetMatch.java index 2e53c892a4..b60f498f44 100644 --- a/icu4j/src/com/ibm/icu/text/CharsetMatch.java +++ b/icu4j/src/com/ibm/icu/text/CharsetMatch.java @@ -47,8 +47,8 @@ public class CharsetMatch implements Comparable { * * @return a String created from the converted input data. */ - public String getString() { - return null; + public String getString() throws java.io.IOException { + return getString(-1); } /** @@ -58,7 +58,9 @@ public class CharsetMatch implements Comparable { * the string will be trunctated to this length if necessary. A limit value of * zero or less is ignored, and treated as no limit. * - * @param maxLength The maximium length of the String to be created. + * @param maxLength The maximium length of the String to be created when the + * source of the data is an input stream, or -1 for + * unlimited length. * @return a String created from the converted input data. */ public String getString(int maxLength) throws java.io.IOException {