diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetMatch.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetMatch.java index e2b65523ac..88ea613176 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetMatch.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetMatch.java @@ -131,59 +131,6 @@ public class CharsetMatch implements Comparable { public int getConfidence() { return fConfidence; } - - - /** - * Bit flag indicating the match is based on the the encoding scheme. - * - * @see #getMatchType - * @stable ICU 3.4 - */ - static public final int ENCODING_SCHEME = 1; - - /** - * Bit flag indicating the match is based on the presence of a BOM. - * - * @see #getMatchType - * @stable ICU 3.4 - */ - static public final int BOM = 2; - - /** - * Bit flag indicating he match is based on the declared encoding. - * - * @see #getMatchType - * @stable ICU 3.4 - */ - static public final int DECLARED_ENCODING = 4; - - /** - * Bit flag indicating the match is based on language statistics. - * - * @see #getMatchType - * @stable ICU 3.4 - */ - static public final int LANG_STATISTICS = 8; - - /** - * Return flags indicating what it was about the input data - * that caused this charset to be considered as a possible match. - * The result is a bitfield containing zero or more of the flags - * ENCODING_SCHEME, BOM, DECLARED_ENCODING, and LANG_STATISTICS. - * A result of zero means no information is available. - *

- * Note: currently, this method always returns zero. - *

- * - * @return the type of match found for this charset. - * - * @draft ICU 3.4 - * @provisional This API might change or be removed in a future release. - */ - public int getMatchType() { -// TODO: create a list of enum-like constants for common combinations of types of matches. - return 0; - } /** * Get the name of the detected charset. diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java index 71c5fb2ada..8f33cb3ca8 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java @@ -177,10 +177,6 @@ public class TestCharsetDetector extends TestFmwk if(confidence != 100){ errln("Did not get the expected confidence level " + confidence); } - int matchType = m.getMatchType(); - if(matchType != 0){ - errln("Did not get the expected matchType level " + matchType); - } } public void TestC1Bytes() throws Exception