GSMCharset extends Charset { public boolean checkAllCharsCanBeEncoded(String data) { return checkAllCharsCanBeEncoded(data, this.mainTable, this.extensionTable); } GSMCharset(String canonicalName, String[] aliases);  GSMCharset(String canonicalName, String[] aliases, int[] mainTable, int[] extentionTable);  GSMCharset(String canonicalName, String[] aliases,
            NationalLanguageIdentifier nationalLanguageLockingShiftIdentifier,
            NationalLanguageIdentifier nationalLanguageSingleShiftIdentifier); @Override boolean contains(Charset cs); @Override CharsetDecoder newDecoder(); @Override CharsetEncoder newEncoder(); boolean checkAllCharsCanBeEncoded(String data); static boolean checkAllCharsCanBeEncoded(String data, int[] mainTable, int[] extentionTable); int checkEncodedDataLengthInChars(String data); static int checkEncodedDataLengthInChars(String data, int[] mainTable, int[] extentionTable); static int septetsToOctets(int septCnt); static int octetsToSeptets(int byteCnt); String[] sliceString(String data, int charCount); static String[] sliceString(String data, int charCount, int[] mainTable, int[] extentionTable); static final String GSM_CANONICAL_NAME; static final byte ESCAPE; static final int[] basicMap; static final int[] basicExtentionMap; static Charset gsm7CharsetDefault; static final int[] spanishExtentionMap; static Charset gsm7CharsetSpanish; static final int[] portugeseMap; static final int[] portugeseExtentionMap; static Charset gsm7CharsetPortugese; static final int[] turkishMap; static final int[] turkishExtentionMap; static Charset gsm7CharsetTurkish; static final int[] urduMap; static final int[] urduExtentionMap; static Charset gsm7CharsetUrdu; static final int[] hindiMap; static final int[] hindiExtentionMap; static Charset gsm7CharsetHindi; static final int[] bengaliMap; static final int[] bengaliExtentionMap; static Charset gsm7CharsetBengali; static final int[] punjabiMap; static final int[] punjabiExtentionMap; static Charset gsm7CharsetPunjabi; static final int[] gujaratiMap; static final int[] gujaratiExtentionMap; static Charset gsm7CharsetGujarati; static final int[] oriyaMap; static final int[] oriyaExtentionMap; static Charset gsm7CharsetOriya; static final int[] tamilMap; static final int[] tamilExtentionMap; static Charset gsm7CharsetTamil; static final int[] teluguMap; static final int[] teluguExtentionMap; static Charset gsm7CharsetTelugu; static final int[] kannadaMap; static final int[] kannadaExtentionMap; static Charset gsm7CharsetKannada; static final int[] malayalamMap; static final int[] malayalamExtentionMap; static Charset gsm7CharsetMalayalam; }
@Test(groups = { "datacoding" }) public void testCheckAllCharsCanBeEncoded() throws Exception { GSMCharset gsm7Charset = new GSMCharset("GSM", new String[] {}); assertTrue(gsm7Charset.checkAllCharsCanBeEncoded("")); assertTrue(gsm7Charset.checkAllCharsCanBeEncoded("[ **]")); assertFalse(gsm7Charset.checkAllCharsCanBeEncoded("w\u044Bw")); }