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

1234567

/external/guava/guava-gwt/src-super/java/nio/charset/
H A DIllegalCharsetNameException.java17 package java.nio.charset;
H A DUnsupportedCharsetException.java17 package java.nio.charset;
H A DCharset.java17 package java.nio.charset;
43 throw new IllegalArgumentException("Null charset name");
62 Charset charset = AVAILABLE_CHARSETS.get(charsetName.toUpperCase());
63 if (charset != null) {
64 return charset;
/external/apache-http/src/org/apache/http/auth/params/
H A DAuthParamBean.java49 public void setCredentialCharset (final String charset) { argument
50 AuthParams.setCredentialCharset(params, charset);
H A DAuthParams.java61 * Obtains the charset for encoding
67 * @return The charset
75 String charset = (String) params.getParameter
79 if (charset == null) {
80 charset = HTTP.DEFAULT_PROTOCOL_CHARSET;
82 return charset;
87 * Sets the charset to be used when encoding
90 * @param charset The charset
92 public static void setCredentialCharset(final HttpParams params, final String charset) { argument
[all...]
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
H A DCharsetUTF16BE.java7 package com.ibm.icu.charset;
H A DCharsetUTF16LE.java7 package com.ibm.icu.charset;
H A DCharsetUTF32BE.java7 package com.ibm.icu.charset;
H A DCharsetUTF32LE.java7 package com.ibm.icu.charset;
H A DCharsetCESU8.java7 package com.ibm.icu.charset;
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
H A DTestAll.java10 package com.ibm.icu.dev.test.charset;
/external/apache-http/src/org/apache/commons/codec/net/
H A DBCodec.java52 * The default charset used for string decoding and encoding.
54 private String charset = StringEncodings.UTF8; field in class:BCodec
64 * Constructor which allows for the selection of a default charset
66 * @param charset
67 * the default string charset to use.
72 public BCodec(final String charset) { argument
74 this.charset = charset;
96 * Encodes a string into its Base64 form using the specified charset. Unsafe characters are escaped.
100 * @param charset
107 encode(final String value, final String charset) argument
[all...]
H A DRFC1522Codec.java54 * given charset. This method constructs the "encoded-word" header common to all the
59 * @param charset a charset to be used
65 * @throws UnsupportedEncodingException thrown if charset is not supported
70 protected String encodeText(final String text, final String charset) argument
78 buffer.append(charset);
82 byte [] rawdata = doEncoding(text.getBytes(charset));
97 * @throws UnsupportedEncodingException thrown if charset specified in the "encoded-word"
113 throw new DecoderException("RFC 1522 violation: charset token not found");
115 String charset
[all...]
H A DURLCodec.java43 * 1.4 rely on the platform's default charset encoding.
58 * The default charset used for string decoding and encoding.
60 protected String charset = StringEncodings.UTF8; field in class:URLCodec
99 * Constructor which allows for the selection of a default charset
101 * @param charset the default string charset to use.
103 public URLCodec(String charset) { argument
105 this.charset = charset;
217 * string charset
225 encode(String pString, String charset) argument
269 decode(String pString, String charset) argument
[all...]
/external/apache-http/src/org/apache/http/entity/
H A DStringEntity.java60 public StringEntity(final String s, String charset) argument
66 if (charset == null) {
67 charset = HTTP.DEFAULT_CONTENT_CHARSET;
69 this.content = s.getBytes(charset);
70 setContentType(HTTP.PLAIN_TEXT_TYPE + HTTP.CHARSET_PARAM + charset);
/external/apache-http/src/org/apache/http/util/
H A DEncodingUtils.java54 * the specified charset is not supported, default system encoding
60 * @param charset the desired character encoding
67 String charset
74 if (charset == null || charset.length() == 0) {
75 throw new IllegalArgumentException("charset may not be null or empty");
79 return new String(data, offset, length, charset);
88 * the specified charset is not supported, default system encoding
92 * @param charset the desired character encoding
95 public static String getString(final byte[] data, final String charset) { argument
110 getBytes(final String data, final String charset) argument
[all...]
/external/freetype/src/cff/
H A Dcffcmap.c132 CFF_Charset charset = &cff->charset; local
133 FT_UInt sid = charset->sids[idx];
147 CFF_Charset charset = &cff->charset; local
155 if ( !charset->sids )
/external/guava/guava/src/com/google/common/hash/
H A DAbstractHasher.java18 import java.nio.charset.Charset;
55 @Override public Hasher putString(CharSequence charSequence, Charset charset) { argument
57 return putBytes(charSequence.toString().getBytes(charset.name()));
/external/guava/guava/src/com/google/common/io/
H A DByteSink.java27 import java.nio.charset.Charset;
56 * as bytes encoded with the given {@link Charset charset}.
58 public CharSink asCharSink(Charset charset) { argument
59 return new AsCharSink(charset);
150 * A char sink that encodes written characters with a charset and writes resulting bytes to this
155 private final Charset charset; field in class:ByteSink.AsCharSink
157 private AsCharSink(Charset charset) { argument
158 this.charset = checkNotNull(charset);
163 return new OutputStreamWriter(ByteSink.this.openStream(), charset);
[all...]
/external/nist-sip/java/gov/nist/javax/sip/message/
H A DMessageFactoryExt.java41 * Set default charset used for encoding String content. Note that this
46 * @param charset -- charset to set.
48 * @throws IllegalArgumentException if Charset is not a known charset.
51 public void setDefaultContentEncodingCharset(String charset) argument
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DResponseBody.java24 import java.nio.charset.Charset;
68 * Returns the response as a character stream decoded with the charset
70 * charset, this will attempt to decode the response body as UTF-8.
74 return r != null ? r : (reader = new InputStreamReader(byteStream(), charset()));
78 * Returns the response as a string decoded with the charset of the
79 * Content-Type header. If that header is either absent or lacks a charset,
83 return new String(bytes(), charset().name());
86 private Charset charset() { method in class:ResponseBody
88 return contentType != null ? contentType.charset(UTF_8) : UTF_8;
97 * contentType} is non-null and lacks a charset, thi
[all...]
/external/pdfium/third_party/freetype/src/cff/
H A Dcffcmap.c132 CFF_Charset charset = &cff->charset; local
133 FT_UInt sid = charset->sids[idx];
147 CFF_Charset charset = &cff->charset; local
155 if ( !charset->sids )
/external/apache-http/android/src/com/android/internal/http/multipart/
H A DStringPart.java58 /** Default charset of string parameters*/
75 * @param charset the charset to be used to encode the string, if <code>null</code>
78 public StringPart(String name, String value, String charset) { argument
83 charset == null ? DEFAULT_CHARSET : charset,
107 * Gets the content in bytes. Bytes are lazily created to allow the charset to be changed
/external/apache-http/src/org/apache/http/impl/auth/
H A DBasicScheme.java146 String charset = AuthParams.getCredentialCharset(request.getParams());
147 return authenticate(credentials, charset, isProxy());
152 * {@link Credentials} and charset.
155 * @param charset The charset to use for encoding the credentials
161 final String charset,
166 if (charset == null) {
167 throw new IllegalArgumentException("charset may not be null");
176 EncodingUtils.getBytes(tmp.toString(), charset));
159 authenticate( final Credentials credentials, final String charset, boolean proxy) argument
/external/apache-http/src/org/apache/http/params/
H A DHttpProtocolParams.java68 * Returns the charset to be used for writing HTTP headers.
69 * @return The charset
75 String charset = (String) params.getParameter
77 if (charset == null) {
78 charset = HTTP.DEFAULT_PROTOCOL_CHARSET;
80 return charset;
84 * Sets the charset to be used for writing HTTP headers.
85 * @param charset The charset
87 public static void setHttpElementCharset(final HttpParams params, final String charset) { argument
116 setContentCharset(final HttpParams params, final String charset) argument
[all...]

Completed in 510 milliseconds

1234567