Searched defs:charset (Results 1 - 25 of 30) sorted by relevance

12

/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/
H A DDecoderUtil.java105 * @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/services/Telephony/src/org/apache/james/mime4j/decoder/
H A DDecoderUtil.java105 * @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/services/Telephony/src/com/android/phone/common/mail/utils/
H A DUtility.java21 import java.nio.charset.Charset;
59 private static byte[] encode(Charset charset, String s) { argument
63 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s));
69 private static String decode(Charset charset, byte[] b) { argument
73 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b));
/packages/apps/Camera2/src/com/android/camera/exif/
H A DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { argument
134 return new String(buf, charset);
H A DExifParser.java24 import java.nio.charset.Charset;
812 * Reads a String from the InputStream with US-ASCII charset. The parser
821 * Reads a String from the InputStream with the given charset. The parser
825 protected String readString(int n, Charset charset) throws IOException { argument
827 return mTiffStream.readString(n, charset);
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/
H A DImportProcessor.java215 private boolean readOneVCard(InputStream is, int vcardType, String charset, argument
/packages/apps/Exchange/src/com/android/exchange/utility/
H A DUriCodec.java22 import java.nio.charset.Charset;
113 private void appendEncoded(StringBuilder builder, String s, Charset charset, argument
128 appendHex(builder, s.substring(escapeStart, i), charset);
145 appendHex(builder, s.substring(escapeStart, s.length()), charset);
149 public final String encode(String s, Charset charset) { argument
152 appendEncoded(builder, s, charset, false);
167 public static String decode(String s, boolean convertPlus, Charset charset) { argument
190 result.append(new String(out.toByteArray(), charset));
223 private static void appendHex(StringBuilder builder, String s, Charset charset) { argument
224 for (byte b : s.getBytes(charset)) {
[all...]
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
H A DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { argument
134 return new String(buf, charset);
H A DExifParser.java24 import java.nio.charset.Charset;
812 * Reads a String from the InputStream with US-ASCII charset. The parser
821 * Reads a String from the InputStream with the given charset. The parser
825 protected String readString(int n, Charset charset) throws IOException { argument
827 return mTiffStream.readString(n, charset);
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/exif/
H A DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { argument
134 return new String(buf, charset);
H A DExifParser.java24 import java.nio.charset.Charset;
812 * Reads a String from the InputStream with US-ASCII charset. The parser
821 * Reads a String from the InputStream with the given charset. The parser
825 protected String readString(int n, Charset charset) throws IOException { argument
827 return mTiffStream.readString(n, charset);
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
H A DEncodedStringValue.java48 * @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 DPduPart.java229 * @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/Messaging/src/com/android/messaging/mmslib/pdu/
H A DEncodedStringValue.java48 * @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 DPduPart.java204 * @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/Messaging/src/com/android/messaging/util/exif/
H A DCountedDataInputStream.java25 import java.nio.charset.Charset;
135 public String readString(int n, Charset charset) throws IOException { argument
138 return new String(buf, charset);
H A DExifParser.java25 import java.nio.charset.Charset;
430 * @see #readString(int, java.nio.charset.Charset)
814 * Reads a String from the InputStream with US-ASCII charset. The parser
823 * Reads a String from the InputStream with the given charset. The parser
827 protected String readString(int n, Charset charset) throws IOException { argument
829 return mTiffStream.readString(n, charset);
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
H A DBodyDescriptor.java37 private String charset = "us-ascii"; field in class:BodyDescriptor
133 String c = params.get("charset");
137 charset = c.toLowerCase();
147 parameters.remove("charset");
354 * Return the charset
357 return charset;
/packages/services/Telephony/src/org/apache/james/mime4j/
H A DBodyDescriptor.java37 private String charset = "us-ascii"; field in class:BodyDescriptor
133 String c = params.get("charset");
137 charset = c.toLowerCase();
147 parameters.remove("charset");
354 * Return the charset
357 return charset;
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java23 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/services/Telephony/src/org/apache/james/mime4j/codec/
H A DEncoderUtil.java23 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/Bluetooth/src/com/android/bluetooth/map/
H A DBluetoothMapUtils.java25 import java.nio.charset.Charset;
26 import java.nio.charset.IllegalCharsetNameException;
171 * @throws UnsupportedEncodingException if "US-ASCII" charset is not supported,
437 String charset;
443 charset = m.group(1);
446 Log.v(TAG, "Matching:" + match +"\nCharset: "+charset +"\nEncoding : " +encoding
451 str = new String(quotedPrintableToUtf8(encodedText,charset));
458 str = new String(Base64.decode(encodedText.getBytes(charset),
459 Base64.DEFAULT), charset);
463 Log.e(TAG, "stripEncoding: Unsupported charset
483 quotedPrintableToUtf8(String text, String charset) argument
[all...]
H A DBluetoothMapbMessageMime.java18 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/Email/emailcommon/src/com/android/emailcommon/utility/
H A DUtility.java56 import java.nio.charset.Charset;
293 private static byte[] encode(Charset charset, String s) { argument
297 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s));
303 private static String decode(Charset charset, byte[] b) { argument
307 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b));
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DDatabaseMessages.java961 final int charset = cursor.getInt(INDEX_CHARSET);
967 charset);
974 public static String getDecodedString(final byte[] data, final int charset) { argument
975 if (CharacterSets.ANY_CHARSET == charset) {
979 final String name = CharacterSets.getMimeName(charset);
994 public static byte[] getStringBytes(final String data, final int charset) { argument
995 if (CharacterSets.ANY_CHARSET == charset) {
999 final String name = CharacterSets.getMimeName(charset);

Completed in 675 milliseconds

12