Searched refs:charset (Results 1 - 25 of 344) sorted by relevance

1234567891011>>

/external/apache-http/src/org/apache/http/auth/params/
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...]
H A DAuthParamBean.java49 public void setCredentialCharset (final String charset) { argument
50 AuthParams.setCredentialCharset(params, 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/curl/lib/
H A Dcurl_fnmatch.c70 static int parsekeyword(unsigned char **pattern, unsigned char *charset) argument
102 charset[CURLFNM_DIGIT] = 1;
104 charset[CURLFNM_ALNUM] = 1;
106 charset[CURLFNM_ALPHA] = 1;
108 charset[CURLFNM_XDIGIT] = 1;
110 charset[CURLFNM_PRINT] = 1;
112 charset[CURLFNM_GRAPH] = 1;
114 charset[CURLFNM_SPACE] = 1;
116 charset[CURLFNM_BLANK] = 1;
118 charset[CURLFNM_UPPE
127 setcharset(unsigned char **p, unsigned char *charset) argument
316 unsigned char charset[CURLFNM_CHSET_SIZE] = { 0 }; local
[all...]
/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...]
H A DEntityUtils.java99 String charset = null;
103 NameValuePair param = values[0].getParameterByName("charset");
105 charset = param.getValue();
109 return charset;
128 String charset = getContentCharSet(entity);
129 if (charset == null) {
130 charset = defaultCharset;
132 if (charset == null) {
133 charset = HTTP.DEFAULT_CONTENT_CHARSET;
135 Reader reader = new InputStreamReader(instream, charset);
[all...]
/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...]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DMediaType.java18 import java.nio.charset.Charset;
37 private final String charset; field in class:MediaType
39 private MediaType(String mediaType, String type, String subtype, String charset) { argument
43 this.charset = charset;
56 String charset = null;
63 if (name == null || !name.equalsIgnoreCase("charset")) continue;
67 if (charset != null && !charsetParameter.equalsIgnoreCase(charset)) {
70 charset
96 public Charset charset() { method in class:MediaType
104 public Charset charset(Charset defaultValue) { method in class:MediaType
[all...]
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/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...]
H A DResources.java31 import java.nio.charset.Charset;
87 public static CharSource asCharSource(URL url, Charset charset) { argument
88 return asByteSource(url).asCharSource(charset);
107 * @param charset the charset used to decode the input stream; see {@link
112 public static String toString(URL url, Charset charset) throws IOException { argument
113 return asCharSource(url, charset).read();
121 * @param charset the charset used to decode the input stream; see {@link
127 public static <T> T readLines(URL url, Charset charset, argument
147 readLines(URL url, Charset charset) argument
[all...]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
H A DMediaTypeTest.java20 import java.nio.charset.Charset;
21 import java.nio.charset.IllegalCharsetNameException;
22 import java.nio.charset.UnsupportedCharsetException;
38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8");
41 assertEquals("UTF-8", mediaType.charset().name());
42 assertEquals("text/plain;boundary=foo;charset=utf-8", mediaType.toString());
43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8")));
45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode());
50 assertMediaType("application/atom+xml; charset=utf-8");
55 assertMediaType("text/plain; charset
[all...]
/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;
/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;
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
H A DStrictLineReader.java25 import java.nio.charset.Charset;
42 * We currently check in constructor that the charset is one of US-ASCII, UTF-8 and ISO-8859-1.
43 * The default charset is US_ASCII.
50 private final Charset charset; field in class:StrictLineReader
63 * Constructs a new {@code LineReader} with the specified charset and the default capacity.
66 * @param charset the charset used to decode data. Only US-ASCII, UTF-8 and ISO-8859-1 are
68 * @throws NullPointerException if {@code in} or {@code charset} is null.
69 * @throws IllegalArgumentException if the specified charset is not supported.
71 public StrictLineReader(InputStream in, Charset charset) { argument
86 StrictLineReader(InputStream in, int capacity, Charset charset) argument
[all...]
/external/guava/guava/src/com/google/common/hash/
H A DFunnels.java22 import java.nio.charset.Charset;
84 public static Funnel<CharSequence> stringFunnel(Charset charset) { argument
85 return new StringCharsetFunnel(charset);
89 private final Charset charset; field in class:Funnels.StringCharsetFunnel
91 StringCharsetFunnel(Charset charset) { argument
92 this.charset = Preconditions.checkNotNull(charset);
96 into.putString(from, charset);
100 return "Funnels.stringFunnel(" + charset.name() + ")";
106 return this.charset
122 SerializedForm(Charset charset) argument
[all...]
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/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
H A DInputFile.java18 import java.nio.charset.CharacterCodingException;
19 import java.nio.charset.Charset;
20 import java.nio.charset.CharsetDecoder;
21 import java.nio.charset.CharsetEncoder;
22 import java.nio.charset.CodingErrorAction;
37 private Charset charset; field in class:InputFile
111 charset = Charset.forName(encoding);
112 decoder = charset.newDecoder();
113 encoder = charset.newEncoder();
124 return charset
[all...]
/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...]
/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/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
H A DRelay.java24 import org.apache.harmony.niochar.charset.additional.IBM437;
31 import java.nio.charset.Charset;
32 import java.nio.charset.CharsetDecoder;
33 import java.nio.charset.CoderResult;
34 import java.nio.charset.CodingErrorAction;
72 Log.d("changing charset to " + encoding);
73 Charset charset;
75 charset = new IBM437("IBM437", new String[] { "IBM437", "CP437" });
77 charset = Charset.forName(encoding);
80 if (charset
[all...]

Completed in 765 milliseconds

1234567891011>>