Home
last modified time | relevance | path

Searched refs:Charset (Results 1 – 25 of 123) sorted by relevance

12345

/external/guava/guava/src/com/google/common/base/
DCharsets.java22 import java.nio.charset.Charset;
49 public static final Charset US_ASCII = Charset.forName("US-ASCII");
59 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1");
68 public static final Charset UTF_8 = Charset.forName("UTF-8");
78 public static final Charset UTF_16BE = Charset.forName("UTF-16BE");
88 public static final Charset UTF_16LE = Charset.forName("UTF-16LE");
99 public static final Charset UTF_16 = Charset.forName("UTF-16");
/external/guava/guava-gwt/src-super/java/nio/charset/
DCharset.java28 public abstract class Charset implements Comparable<Charset> { class
29 private static final Charset UTF_8 = new Charset("UTF-8") {};
31 private static final SortedMap<String, Charset> AVAILABLE_CHARSETS =
32 new TreeMap<String, Charset>();
37 public static SortedMap<String, Charset> availableCharsets() { in availableCharsets()
41 public static Charset forName(String charsetName) { in forName()
62 Charset charset = AVAILABLE_CHARSETS.get(charsetName.toUpperCase()); in forName()
71 private Charset(String name) { in Charset() method in Charset
79 public final int compareTo(Charset that) { in compareTo()
90 } else if (o instanceof Charset) { in equals()
[all …]
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/
DUnicodeReader.java45 import java.nio.charset.Charset;
54 private static final Charset UTF8 = Charset.forName("UTF-8");
55 private static final Charset UTF16BE = Charset.forName("UTF-16BE");
56 private static final Charset UTF16LE = Charset.forName("UTF-16LE");
87 Charset encoding; in init()
/external/guava/guava-tests/test/com/google/common/base/
DCharsetsTest.java24 import java.nio.charset.Charset;
37 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii()
42 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591()
46 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8()
51 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be()
56 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le()
61 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/
DCharsetProviderICU.java11 import java.nio.charset.Charset;
33 private static List<Charset> icuCharsets = Collections.<Charset>emptyList();
49 public final Charset charsetForName(String charsetName){ in charsetForName()
86 public final Charset charsetForName(String charsetName, String classPath) { in charsetForName()
99 public Charset charsetForName(String charsetName, String classPath, ClassLoader loader) { in charsetForName()
155 private static final Charset getCharset(String icuCanonicalName, String optionsString) in getCharset()
269 List<Charset> icucs = new LinkedList<Charset>(); in loadAvailableICUCharsets()
274 Charset cs = getCharset(name, ""); in loadAvailableICUCharsets()
291 public final Iterator<Charset> charsets() { in charsets()
307 for (Charset cs : icuCharsets) { in getAvailableNames()
DCharsetICU.java12 import java.nio.charset.Charset;
64 public abstract class CharsetICU extends Charset{
130 public boolean contains(Charset cs){ in contains()
195 …/*public*/ static final Charset getCharset(String icuCanonicalName, String javaCanonicalName, Stri… in getCharset()
258 …public static Charset forNameICU(String charsetName) throws IllegalCharsetNameException, Unsupport… in forNameICU()
264 return Charset.forName(charsetName); in forNameICU()
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/
DUtil.java24 import java.nio.charset.Charset;
28 static final Charset US_ASCII = Charset.forName("US-ASCII");
29 static final Charset UTF_8 = Charset.forName("UTF-8");
DStrictLineReader.java25 import java.nio.charset.Charset;
50 private final Charset charset;
71 public StrictLineReader(InputStream in, Charset charset) { in StrictLineReader()
86 public StrictLineReader(InputStream in, int capacity, Charset charset) { in StrictLineReader()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DMediaType.java18 import java.nio.charset.Charset;
96 public Charset charset() { in charset()
97 return charset != null ? Charset.forName(charset) : null; in charset()
104 public Charset charset(Charset defaultValue) { in charset()
105 return charset != null ? Charset.forName(charset) : defaultValue; in charset()
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
DConverterPerformanceTest.java16 import java.nio.charset.Charset;
42 CharsetEncoder encoder = Charset.forName(encoding).newEncoder(); in setup()
207 Charset myCharset = Charset.forName(testName);
236 Charset myCharset = Charset.forName(testName);
265 Charset myCharset = new CharsetProviderICU().charsetForName(testName);
294 Charset myCharset = new CharsetProviderICU().charsetForName(testName);
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/util/
DEncodingPreference.java7 import java.nio.charset.Charset;
20 for (Entry<String, Charset> entry : Charset.availableCharsets().entrySet()) { in EncodingPreference()
21 Charset c = entry.getValue(); in EncodingPreference()
/external/guava/guava/src/com/google/common/io/
DFiles.java49 import java.nio.charset.Charset;
81 public static BufferedReader newReader(File file, Charset charset) in newReader()
98 public static BufferedWriter newWriter(File file, Charset charset) in newWriter()
215 public static CharSource asCharSource(File file, Charset charset) { in asCharSource()
229 public static CharSink asCharSink(File file, Charset charset, in asCharSink()
263 public static String toString(File file, Charset charset) throws IOException { in toString()
318 public static void write(CharSequence from, File to, Charset charset) in write()
333 public static void append(CharSequence from, File to, Charset charset) in append()
349 private static void write(CharSequence from, File to, Charset charset, in write()
364 public static void copy(File from, Charset charset, Appendable to) in copy()
[all …]
DResources.java31 import java.nio.charset.Charset;
87 public static CharSource asCharSource(URL url, Charset charset) { in asCharSource()
112 public static String toString(URL url, Charset charset) throws IOException { in toString()
127 public static <T> T readLines(URL url, Charset charset, in readLines()
147 public static List<String> readLines(URL url, Charset charset) in readLines()
DByteSink.java27 import java.nio.charset.Charset;
58 public CharSink asCharSink(Charset charset) { in asCharSink()
140 private final Charset charset;
142 private AsCharSink(Charset charset) { in AsCharSink()
/external/guava/guava/src/com/google/common/hash/
DFunnels.java22 import java.nio.charset.Charset;
84 public static Funnel<CharSequence> stringFunnel(Charset charset) { in stringFunnel()
89 private final Charset charset;
91 StringCharsetFunnel(Charset charset) { in StringCharsetFunnel()
122 SerializedForm(Charset charset) { in SerializedForm()
127 return stringFunnel(Charset.forName(charsetCanonicalName)); in readResolve()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DCharsets.java21 import java.nio.charset.Charset;
47 public static final Charset UTF_8 = Charset.forName("UTF-8");
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/
DReaderBomTest.java25 import java.nio.charset.Charset;
51 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testNoBom()
77 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testUtf8Bom()
95 assertEquals(Charset.forName("UTF-16LE"), reader.getEncoding()); in testUnicodeLeBom()
113 assertEquals(Charset.forName("UTF-16BE"), reader.getEncoding()); in testUnicodeBeBom()
/external/okhttp/okio/okio/src/main/java/okio/
DUtil.java18 import java.nio.charset.Charset;
22 public static final Charset UTF_8 = Charset.forName("UTF-8");
DBufferedSink.java20 import java.nio.charset.Charset;
66 BufferedSink writeString(String string, Charset charset) throws IOException; in writeString()
72 BufferedSink writeString(String string, int beginIndex, int endIndex, Charset charset) in writeString()
DBufferedSource.java20 import java.nio.charset.Charset;
193 String readString(Charset charset) throws IOException; in readString()
199 String readString(long byteCount, Charset charset) throws IOException; in readString()
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ClassType/
DNewInstanceStringDebuggee.java24 import java.nio.charset.Charset;
32 public static final Charset CHARSET = Charset.defaultCharset();
/external/guava/guava-tests/test/com/google/common/hash/
DFunnelsTest.java34 import java.nio.charset.Charset;
64 for (Charset charset : Charset.availableCharsets().values()) { in testForStringsCharset()
72 for (Charset charset : Charset.availableCharsets().values()) { in testForStringsCharset_null()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/service/
DRelay.java31 import java.nio.charset.Charset;
47 private Charset currentCharset;
74 Charset charset; in setCharset()
78 charset = Charset.forName(encoding); in setCharset()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/
DYamlDocument.java22 import java.nio.charset.Charset;
41 Charset charset = Charset.forName("UTF-8"); in YamlDocument()
/external/sl4a/ScriptingLayerForAndroid/src/org/apache/harmony/niochar/charset/additional/
DIBM437.java22 import java.nio.charset.Charset;
32 public class IBM437 extends Charset {
38 public boolean contains(Charset cs) { in contains()
51 private Decoder(Charset cs){ in Decoder()
150 private Encoder(Charset cs){ in Encoder()

12345