/packages/apps/Email/src/com/beetstra/jutf7/ |
H A D | CharsetProvider.java | 28 import java.nio.charset.Charset;
35 * Charset service-provider class used for both variants of the UTF-7 charset
36 * and the modified-UTF-7 charset.
41 public class CharsetProvider extends java.nio.charset.spi.CharsetProvider {
72 Charset charset = (Charset)iter.next();
73 if (charset.name().equals(charsetName))
74 return charset;
77 Charset charset = (Charset)iter.next();
78 if (charset.aliases().contains(charsetName))
79 return charset;
[all...] |
H A D | UTF7StyleCharset.java | 27 import java.nio.charset.Charset;
28 import java.nio.charset.CharsetDecoder;
29 import java.nio.charset.CharsetEncoder;
58 * @param canonicalName The name as defined in java.nio.charset.Charset
59 * @param aliases The aliases as defined in java.nio.charset.Charset
72 * @see java.nio.charset.Charset#contains(java.nio.charset.Charset)
80 * @see java.nio.charset.Charset#newDecoder()
88 * @see java.nio.charset.Charset#newEncoder()
|
H A D | UTF7StyleCharsetDecoder.java | 29 import java.nio.charset.CharsetDecoder;
30 import java.nio.charset.CoderResult;
34 * The CharsetDecoder used to decode both variants of the UTF-7 charset and the
35 * modified-UTF-7 charset.
61 * @see java.nio.charset.CharsetDecoder#decodeLoop(java.nio.ByteBuffer,
146 * @see java.nio.charset.CharsetDecoder#implFlush(java.nio.CharBuffer)
156 * @see java.nio.charset.CharsetDecoder#implReset()
|
H A D | UTF7StyleCharsetEncoder.java | 29 import java.nio.charset.CharsetEncoder;
30 import java.nio.charset.CoderResult;
34 * The CharsetEncoder used to encode both variants of the UTF-7 charset and the
35 * modified-UTF-7 charset.
41 * {@link java.nio.charset.CharsetEncoder#encode(CharBuffer)}. Unfortunately,
79 * @see java.nio.charset.CharsetEncoder#implReset()
94 * {@link java.nio.charset.CharsetEncoder#flush(ByteBuffer)} causing it to
122 * {@link java.nio.charset.CharsetEncoder#encode(CharBuffer)} to call flush
|
/packages/apps/Mms/src/com/android/mms/model/ |
H A D | TextModel.java | 45 int charset, byte[] data, RegionModel region) { 49 if (charset == CharacterSets.ANY_CHARSET) { 52 charset = CharacterSets.ISO_8859_1; 54 mCharset = charset; 75 public TextModel(Context context, String contentType, String src, int charset, argument 79 if (charset == CharacterSets.ANY_CHARSET) { 82 charset = CharacterSets.ISO_8859_1; 84 mCharset = charset; 44 TextModel(Context context, String contentType, String src, int charset, byte[] data, RegionModel region) argument
|
/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
H A D | EncoderUtil.java | 23 import java.nio.charset.Charset; 253 * The charset to encode the specified text into a byte array and the 277 * The charset to encode the specified text into a byte array and the 308 * @param charset 309 * the Java charset that should be used to encode the specified 310 * string into a byte array. A suitable charset is detected 321 int usedCharacters, Charset charset, Encoding encoding) { 327 if (charset == null) 328 charset = determineCharset(text); 330 String mimeCharset = CharsetUtil.toMimeCharset(charset 320 encodeEncodedWord(String text, Usage usage, int usedCharacters, Charset charset, Encoding encoding) argument 512 encodeB(String prefix, String text, int usedCharacters, Charset charset, byte[] bytes) argument 540 encodeQ(String prefix, String text, Usage usage, int usedCharacters, Charset charset, byte[] bytes) argument 584 encode(String text, Charset charset) argument [all...] |
/packages/apps/Email/src/org/apache/james/mime4j/decoder/ |
H A D | DecoderUtil.java | 105 * @param charset the Java charset to use.
107 * @throws UnsupportedEncodingException if the given Java charset isn't
110 public static String decodeB(String encodedWord, String charset)
argument 113 return new String(decodeBase64(encodedWord), charset);
121 * @param charset the Java charset to use.
123 * @throws UnsupportedEncodingException if the given Java charset isn't
126 public static String decodeQ(String encodedWord, String charset)
argument 142 return new String(decodeBaseQuotedPrintable(sb.toString()), charset);
[all...] |
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | AddressUtils.java | 57 int charset = cursor.getInt(1); 58 return new EncodedStringValue(charset, bytes)
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
H A D | CharsetUtil.java | 23 import java.nio.charset.IllegalCharsetNameException;
24 import java.nio.charset.UnsupportedCharsetException;
35 * the Java 1.4 <code>java.nio.charset.Charset</code> class but knows many
1016 * a charset will be mapped to the Charset.
1080 public static final java.nio.charset.Charset US_ASCII = java.nio.charset.Charset
1083 public static final java.nio.charset.Charset ISO_8859_1 = java.nio.charset.Charset
1086 public static final java.nio.charset.Charset UTF_8 = java.nio.charset [all...] |
/packages/apps/Email/src/com/android/email/mail/internet/ |
H A D | MimeUtility.java | 247 * Reads the Part's body and returns a String based on any charset conversion that needed 271 String charset = getHeaderParameter(part.getContentType(), "charset"); 272 if (charset != null) { 274 * See if there is conversion from the MIME charset to the Java one. 276 charset = CharsetUtil.toJavaCharset(charset); 281 if (charset == null) { 282 charset = "ASCII"; 287 String result = out.toString(charset); [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | ImportVCardActivity.java | 249 String charset = detector.getEstimatedCharset(); 250 createdUri = doActuallyReadOneVCard(targetUri, null, charset, true, detector, 275 String charset = detector.getEstimatedCharset(); 277 charset, false, detector, mErrorFileNameList); 330 String charset, boolean showEntryParseProgress, 337 if (charset != null) { 338 builder = new VCardEntryConstructor(charset, charset, false, vcardType, mAccount); 340 charset = VCardConfig.DEFAULT_CHARSET; 353 if (!readOneVCardFile(uri, charset, builde 329 doActuallyReadOneVCard(Uri uri, Account account, String charset, boolean showEntryParseProgress, VCardSourceDetector detector, List<String> errorFileNameList) argument 363 readOneVCardFile(Uri uri, String charset, VCardInterpreter builder, VCardSourceDetector detector, boolean throwNestedException, List<String> errorFileNameList) argument [all...] |
/packages/apps/Email/src/org/apache/commons/io/output/ |
H A D | FileWriterWithEncoding.java | 25 import java.nio.charset.Charset;
26 import java.nio.charset.CharsetEncoder;
|
/packages/apps/Email/src/org/apache/james/mime4j/ |
H A D | BodyDescriptor.java | 37 private String charset = "us-ascii";
field in class:BodyDescriptor 133 String c = (String) params.get("charset");
137 charset = c.toLowerCase();
147 parameters.remove("charset");
360 * Return the charset
362 * @return charset
365 return charset;
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/ |
H A D | ndbdic.c | 1676 if ((condition->charset != NULL) && aimai_flg) { 1678 for (l = 0; l < condition->charset->charset_count; l++) { 1680 if (nj_charncmp(key, condition->charset->from[l], 1) == 0) { 1682 nj_strcpy(char_tmp, condition->charset->to[l]); 1811 if ((condition->charset != NULL) && aimai_flg) { 1813 for (l = 0; l < condition->charset->charset_count; l++) { 1815 if (nj_charncmp(key, condition->charset->from[l], 1) == 0) { 1817 nj_strcpy(char_tmp, condition->charset->to[l]);
|
H A D | ndldic.c | 1963 NJ_CHARSET *pCharset = cond->charset;
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/ |
H A D | nj_lib.h | 207 NJ_CHARSET *charset; member in struct:__anon10
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | MessageUtils.java | 774 int charset = cursor.getInt(columnCharset); 778 } else if (charset == CharacterSets.ANY_CHARSET) { 781 return new EncodedStringValue(charset, PduPersister.getBytes(rawBytes)).getString();
|
/packages/apps/Email/tests/src/com/android/email/mail/internet/ |
H A D | MimeUtilityTest.java | 356 * For example 'Content-Type: text/html; charset=utf-8' 360 * Then, the charset parameter is used, with a default of ASCII. 375 String gotText, mimeType, charset; 379 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=utf-8"); 385 p.setHeader(MimeHeader.HEADER_CONTENT_TYPE, "text/html; charset=windows-1252"); 393 "text/html; prop1 = \"test\"; charset = \"utf-8\"; prop2 = \"test\""); 400 "text/html; prop1 = \"test\"; charset = \"windows-1252\"; prop2 = \"test\""); 427 "text/html; charset=utf-8 (Plain text)"); 435 "text/html; charset=windows-1252 (Plain text)");
|
/packages/apps/Mms/src/com/android/mms/transaction/ |
H A D | MessagingNotification.java | 570 private static String getMmsSubject(String sub, int charset) { argument 572 : new EncodedStringValue(charset, PduPersister.getBytes(sub)).getString();
|
/packages/apps/Email/src/com/android/email/ |
H A D | Utility.java | 48 import java.nio.charset.Charset;
|
/packages/apps/Email/src/com/android/email/mail/store/ |
H A D | ImapStore.java | 61 import java.nio.charset.Charset;
|
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
H A D | OpenWnnDictionaryImplJni.c | 417 work->cursor.cond.charset = &( work->approxSet );
|