]> granicus.if.org Git - icu/commitdiff
ICU-9363 Removing un-implemented draft API CharsetMatch#getMatchType() and constants...
authorYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Jun 2012 16:18:07 +0000 (16:18 +0000)
committerYoshito Umaoka <y.umaoka@gmail.com>
Thu, 14 Jun 2012 16:18:07 +0000 (16:18 +0000)
X-SVN-Rev: 31950

icu4j/main/classes/core/src/com/ibm/icu/text/CharsetMatch.java
icu4j/main/tests/core/src/com/ibm/icu/dev/test/charsetdet/TestCharsetDetector.java

index e2b65523ac830aabd850af34bbe9a4845d1a85b7..88ea61317607f3752f28ee6dce8e3218028d6dab 100644 (file)
@@ -131,59 +131,6 @@ public class CharsetMatch implements Comparable<CharsetMatch> {
     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.
-     * <p>
-     * Note: currently, this method always returns zero.
-     * <p>
-     *
-     * @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.  
index 71c5fb2adae971e923516764c0c7da3a6a0e2ff8..8f33cb3ca8b635e307900d54b471a6b039f54b06 100644 (file)
@@ -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