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

123456789

/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.java9 package com.ibm.icu.charset;
H A DCharsetUTF16LE.java9 package com.ibm.icu.charset;
H A DCharsetUTF32BE.java9 package com.ibm.icu.charset;
H A DCharsetUTF32LE.java9 package com.ibm.icu.charset;
H A DCharsetCESU8.java9 package com.ibm.icu.charset;
H A DUConverterAliasDataReader.java10 package com.ibm.icu.charset;
/external/mockito/src/test/java/org/mockitousage/bugs/
H A DFinalHashCodeAndEqualsRaiseNPEInInitMocksTest.java12 import java.nio.charset.Charset;
16 @Mock private Charset charset; field in class:FinalHashCodeAndEqualsRaiseNPEInInitMocksTest
26 private Charset charset; field in class:FinalHashCodeAndEqualsRaiseNPEInInitMocksTest.FieldCharsetHolder
30 public ConstructorCharsetHolder(Charset charset) { argument
/external/pdfium/core/fpdfdoc/
H A Dcpvt_wordinfo.cpp19 int32_t charset,
23 nCharset(charset),
18 CPVT_WordInfo(uint16_t word, int32_t charset, int32_t fontIndex, CPVT_WordProps* pProps) argument
/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...]
/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.c138 CFF_Charset charset = &cff->charset; local
139 FT_UInt sid = charset->sids[idx];
153 CFF_Charset charset = &cff->charset; local
161 if ( !charset->sids )
/external/guava/guava/src/com/google/common/hash/
H A DAbstractHasher.java17 import java.nio.charset.Charset;
46 @Override public Hasher putString(CharSequence charSequence, Charset charset) { argument
47 return putBytes(charSequence.toString().getBytes(charset));
/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);
135 * A char sink that encodes written characters with a charset and writes resulting bytes to this
140 private final Charset charset; field in class:ByteSink.AsCharSink
142 private AsCharSink(Charset charset) { argument
143 this.charset = checkNotNull(charset);
148 return new OutputStreamWriter(ByteSink.this.openStream(), charset);
[all...]
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/
H A DTestSelection.java22 package com.ibm.icu.dev.test.charset;
24 import java.nio.charset.Charset;
31 import com.ibm.icu.charset.CharsetICU;
32 import com.ibm.icu.charset.CharsetProviderICU;
33 import com.ibm.icu.charset.CharsetSelector;
117 errln("failure in charset selector! Charset " + enc
/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

Completed in 733 milliseconds

123456789