/packages/apps/Email/src/com/beetstra/jutf7/ |
H A D | CharsetProvider.java | 27 import java.nio.charset.Charset;
34 * Charset service-provider class used for both variants of the UTF-7 charset
35 * and the modified-UTF-7 charset.
40 public class CharsetProvider extends java.nio.charset.spi.CharsetProvider {
72 Charset charset = iter.next();
73 if (charset.name().equals(charsetName))
74 return charset;
77 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/Dialer/java/com/android/voicemail/impl/mail/utils/ |
H A D | Utility.java | 19 import java.nio.charset.Charset; 55 private static byte[] encode(Charset charset, String s) { argument 59 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s)); 65 private static String decode(Charset charset, byte[] b) { argument 69 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b));
|
/packages/apps/UnifiedEmail/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/UnifiedEmail/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/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
H A D | RequestGetMessage.java | 31 import java.nio.charset.StandardCharsets; 45 public RequestGetMessage(String handle, MasClient.CharsetType charset, argument 55 MasClient.CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 80 // charset/encoding defined for body-content.
|
H A D | RequestPushMessage.java | 44 CharsetType charset, 51 oap.add(OAP_TAGID_CHARSET, charset == CharsetType.NATIVE ? CHARSET_NATIVE : CHARSET_UTF8); 43 RequestPushMessage(String folder, Bmessage msg, CharsetType charset, boolean transparent, boolean retry) argument
|
H A D | Bmessage.java | 123 public Bmessage setCharset(String charset) { argument 124 mBbodyCharset = charset; 154 json.put("charset", mBbodyCharset);
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
H A D | EncodedStringValue.java | 48 * @param charset the Char-set value 52 public EncodedStringValue(int charset, byte[] data) { argument 58 mCharacterSet = charset; 80 * @param charset 84 public EncodedStringValue(int charset, String data) { argument 88 mCharacterSet = charset; 90 mData = data.getBytes(CharacterSets.getMimeName(charset)); 92 Log.e(TAG, "Input encoding " + charset + " must be supported.", e); 109 * @param charset the Char-set value 111 public void setCharacterSet(int charset) { argument [all...] |
H A D | PduPart.java | 204 * @param charset the value 206 public void setCharset(final int charset) { argument 207 mPartHeader.put(P_CHARSET, charset); 213 * @return the charset value. Return 0 if charset was not set. 216 final Integer charset = (Integer) mPartHeader.get(P_CHARSET); 217 if (charset == null) { 220 return charset.intValue();
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
H A D | BluetoothMapUtils.java | 25 import java.nio.charset.Charset; 26 import java.nio.charset.IllegalCharsetNameException; 171 * @throws UnsupportedEncodingException if "US-ASCII" charset is not supported, 438 String charset; 444 charset = m.group(1); 447 Log.v(TAG, "Matching:" + match +"\nCharset: "+charset +"\nEncoding : " +encoding 452 str = new String(quotedPrintableToUtf8(encodedText,charset)); 459 str = new String(Base64.decode(encodedText.getBytes(charset), 460 Base64.DEFAULT), charset); 464 Log.e(TAG, "stripEncoding: Unsupported charset 484 quotedPrintableToUtf8(String text, String charset) argument [all...] |
H A D | BluetoothMapbMessageMime.java | 18 import java.nio.charset.Charset; 19 import java.nio.charset.IllegalCharsetNameException; 51 String charset = mCharsetName; 52 // Figure out if we support the charset, else fall back to UTF-8, as this is what 54 if(charset == null){ 55 charset = "UTF-8"; 57 charset = charset.toUpperCase(); 59 if(Charset.isSupported(charset) == false) { 60 charset 656 decodeBody(String body, String encoding, String charset) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/exif/ |
H A D | CountedDataInputStream.java | 25 import java.nio.charset.Charset; 131 public String readString(int n, Charset charset) throws IOException { argument 134 return new String(buf, charset);
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
H A D | CountedDataInputStream.java | 26 import java.nio.charset.Charset; 124 String readString(int n, Charset charset) throws IOException { argument 127 return new String(buf, charset);
|
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/ |
H A D | CountedDataInputStream.java | 25 import java.nio.charset.Charset; 131 public String readString(int n, Charset charset) throws IOException { argument 134 return new String(buf, charset);
|
/packages/apps/Messaging/src/com/android/messaging/util/exif/ |
H A D | CountedDataInputStream.java | 25 import java.nio.charset.Charset; 135 public String readString(int n, Charset charset) throws IOException { argument 138 return new String(buf, charset);
|
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
H A D | CharsetUtil.java | 23 import java.nio.charset.IllegalCharsetNameException; 24 import java.nio.charset.UnsupportedCharsetException; 36 * 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/Messaging/src/android/support/v7/mms/pdu/ |
H A D | EncodedStringValue.java | 48 * @param charset the Char-set value 52 public EncodedStringValue(int charset, byte[] data) { argument 58 mCharacterSet = charset; 94 * @param charset the Char-set value 96 public void setCharacterSet(int charset) { argument 98 mCharacterSet = charset;
|
H A D | PduPart.java | 229 * @param charset the value 231 public void setCharset(int charset) { argument 232 mPartHeader.put(P_CHARSET, charset); 238 * @return the charset value. Return 0 if charset was not set. 241 Integer charset = (Integer) mPartHeader.get(P_CHARSET); 242 if(charset == null) { 245 return charset.intValue();
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/internet/ |
H A D | MimeUtility.java | 209 * Reads the Part's body and returns a String based on any charset conversion that needed to be 234 String charset = getHeaderParameter(part.getContentType(), "charset"); 235 if (charset != null) { 237 * See if there is conversion from the MIME charset to the Java one. 239 charset = CharsetUtil.lookup(charset).name(); 244 if (charset == null) { 245 charset = "ASCII"; 250 String result = out.toString(charset); [all...] |
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
H A D | MimeUtility.java | 219 * Reads the Part's body and returns a String based on any charset conversion that needed 243 String charset = getHeaderParameter(part.getContentType(), "charset"); 244 if (charset != null) { 246 * See if there is conversion from the MIME charset to the Java one. 248 charset = CharsetUtil.toJavaCharset(charset); 253 if (charset == null) { 254 charset = "ASCII"; 259 String result = out.toString(charset); [all...] |
/packages/apps/UnifiedEmail/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/Tag/src/com/android/apps/tag/record/ |
H A D | MimeRecord.java | 31 import java.nio.charset.Charset;
|