/external/apache-commons-io/src/main/java/org/apache/commons/io/ |
D | Charsets.java | 19 import java.nio.charset.Charset; 63 private static final SortedMap<String, Charset> STANDARD_CHARSET_MAP; 66 …final SortedMap<String, Charset> standardCharsetMap = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); 86 public static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1; 100 public static final Charset US_ASCII = StandardCharsets.US_ASCII; 115 public static final Charset UTF_16 = StandardCharsets.UTF_16; 129 public static final Charset UTF_16BE = StandardCharsets.UTF_16BE; 143 public static final Charset UTF_16LE = StandardCharsets.UTF_16LE; 157 public static final Charset UTF_8 = StandardCharsets.UTF_8; 171 public static SortedMap<String, Charset> requiredCharsets() { in requiredCharsets() [all …]
|
D | IOUtils.java | 47 import java.nio.charset.Charset; 1102 copy(input, writer, Charset.defaultCharset()); in copy() 1123 … public static void copy(final InputStream input, final Writer writer, final Charset inputCharset) in copy() 1266 copy(reader, output, Charset.defaultCharset()); in copy() 1292 …public static void copy(final Reader reader, final OutputStream output, final Charset outputCharse… in copy() 1754 public static LineIterator lineIterator(final InputStream input, final Charset charset) { in lineIterator() 2095 return readLines(input, Charset.defaultCharset()); in readLines() 2113 …public static List<String> readLines(final InputStream input, final Charset charset) throws Unchec… in readLines() 2208 …public static String resourceToString(final String name, final Charset charset) throws IOException… in resourceToString() 2226 …public static String resourceToString(final String name, final Charset charset, final ClassLoader … in resourceToString() [all …]
|
/external/guava/android/guava/src/com/google/common/base/ |
D | Charsets.java | 19 import java.nio.charset.Charset; 46 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 55 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 64 public static final Charset UTF_8 = Charset.forName("UTF-8"); 74 public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); 84 public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); 95 public static final Charset UTF_16 = Charset.forName("UTF-16");
|
/external/guava/guava/src/com/google/common/base/ |
D | Charsets.java | 19 import java.nio.charset.Charset; 46 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 55 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 64 public static final Charset UTF_8 = Charset.forName("UTF-8"); 74 public static final Charset UTF_16BE = Charset.forName("UTF-16BE"); 84 public static final Charset UTF_16LE = Charset.forName("UTF-16LE"); 95 public static final Charset UTF_16 = Charset.forName("UTF-16");
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/utils/ |
D | Charsets.java | 21 import java.nio.charset.Charset; 72 public static Charset toCharset(final Charset charset) { in toCharset() 73 return charset == null ? Charset.defaultCharset() : charset; in toCharset() 87 public static Charset toCharset(final String charset) { in toCharset() 88 return charset == null ? Charset.defaultCharset() : Charset.forName(charset); in toCharset() 100 public static final Charset ISO_8859_1 = StandardCharsets.ISO_8859_1; 113 public static final Charset US_ASCII = StandardCharsets.US_ASCII; 127 public static final Charset UTF_16 = StandardCharsets.UTF_16; 140 public static final Charset UTF_16BE = StandardCharsets.UTF_16BE; 153 public static final Charset UTF_16LE = StandardCharsets.UTF_16LE; [all …]
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/ |
D | CharsetsTest.java | 22 import java.nio.charset.Charset; 41 final SortedMap<String, Charset> requiredCharsets = Charsets.requiredCharsets(); in testRequiredCharsets() 54 assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null)); in testToCharset_String() 55 assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null)); in testToCharset_String() 56 assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset())); in testToCharset_String() 63 …assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null, Charset.defaultCharset())… in testToCharset_String_Charset() 64 …assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null, Charset.defaultCharset()… in testToCharset_String_Charset() 65 assertEquals(null, Charsets.toCharset((Charset) null, null)); in testToCharset_String_Charset() 66 …assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset(), Charset.defaul… in testToCharset_String_Charset() 67 …assertEquals(StandardCharsets.UTF_8, Charsets.toCharset(StandardCharsets.UTF_8, Charset.defaultCha… in testToCharset_String_Charset()
|
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/ |
D | Charsets.java | 20 import java.nio.charset.Charset; 43 static Charset toCharset(final Charset charset) { in toCharset() 44 return charset == null ? Charset.defaultCharset() : charset; in toCharset() 55 static Charset toCharset(final String charsetName) { in toCharset() 56 return charsetName == null ? Charset.defaultCharset() : Charset.forName(charsetName); in toCharset() 66 return charsetName == null ? Charset.defaultCharset().name() : charsetName; in toCharsetName()
|
/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | CharsetsTest.java | 20 import java.nio.charset.Charset; 33 Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null)); in testToCharset_Charset() 34 … Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset())); in testToCharset_Charset() 40 Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null)); in testToCharset_String() 41 …Assertions.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset().name… in testToCharset_String() 47 … Assertions.assertEquals(Charset.defaultCharset().name(), Charsets.toCharsetName((String) null)); in testToCharsetName()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | CharsetsTest.java | 20 import java.nio.charset.Charset; 34 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset((String) null)); in testToCharset() 35 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset((Charset) null)); in testToCharset() 36 Assert.assertEquals(Charset.defaultCharset(), Charsets.toCharset(Charset.defaultCharset())); in testToCharset() 37 Assert.assertEquals(Charset.forName("UTF-8"), Charsets.toCharset(Charset.forName("UTF-8"))); in testToCharset()
|
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/ |
D | RoboCharsets.java | 3 import java.nio.charset.Charset; 10 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 15 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 20 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/external/mobile-data-download/java/com/google/android/libraries/mobiledatadownload/file/common/internal/ |
D | Charsets.java | 18 import java.nio.charset.Charset; 31 public static final Charset US_ASCII = Charset.forName("US-ASCII"); 34 public static final Charset ISO_8859_1 = Charset.forName("ISO-8859-1"); 37 public static final Charset UTF_8 = Charset.forName("UTF-8");
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
D | ReaderInputStreamTest.java | 28 import java.nio.charset.Charset; 73 final Charset charset = StandardCharsets.UTF_8; in testBufferSmallest() 89 final Charset charset = Charset.forName(charsetName); in testCharsetEncoderFlush() 105 final Charset charset = StandardCharsets.US_ASCII; // infinite loop in testCharsetMismatchInfiniteLoop() 119 final Charset charset = StandardCharsets.UTF_8; in testCodingErrorAction() 129 final Charset charset = Charset.defaultCharset(); in testConstructNullCharset() 130 final Charset encoder = null; in testConstructNullCharset() 133 assertEquals(Charset.defaultCharset(), in.getCharsetEncoder().charset()); in testConstructNullCharset() 140 final Charset charset = Charset.defaultCharset(); in testConstructNullCharsetEncoder() 144 assertEquals(Charset.defaultCharset(), in.getCharsetEncoder().charset()); in testConstructNullCharsetEncoder() [all …]
|
/external/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/ |
D | UnicodeReader.java | 45 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/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | Providers.java | 25 import java.nio.charset.Charset; 36 public static final Charset UTF8 = Charset.forName("utf-8"); 45 public static Provider provider(InputStream input, Charset encoding) { in provider() 61 public static Provider provider(File file, Charset encoding) throws FileNotFoundException { in provider() 69 public static Provider provider(Path path, Charset encoding) throws IOException { in provider() 86 …public static Provider resourceProvider(ClassLoader classLoader, String pathToResource, Charset en… in resourceProvider() 98 …public static Provider resourceProvider(String pathToResource, Charset encoding) throws IOExceptio… in resourceProvider()
|
/external/guava/android/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 21 import java.nio.charset.Charset; 35 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 40 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591() 44 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8() 49 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be() 54 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le() 59 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharsetsTest.java | 21 import java.nio.charset.Charset; 35 assertEquals(Charset.forName("US-ASCII"), Charsets.US_ASCII); in testUsAscii() 40 assertEquals(Charset.forName("ISO-8859-1"), Charsets.ISO_8859_1); in testIso88591() 44 assertEquals(Charset.forName("UTF-8"), Charsets.UTF_8); in testUtf8() 49 assertEquals(Charset.forName("UTF-16BE"), Charsets.UTF_16BE); in testUtf16be() 54 assertEquals(Charset.forName("UTF-16LE"), Charsets.UTF_16LE); in testUtf16le() 59 assertEquals(Charset.forName("UTF-16"), Charsets.UTF_16); in testUtf16()
|
/external/icu/icu4j/main/classes/charset/src/com/ibm/icu/charset/ |
D | CharsetProviderICU.java | 13 import java.nio.charset.Charset; 35 private static List<Charset> icuCharsets = Collections.<Charset>emptyList(); 52 public final Charset charsetForName(String charsetName){ in charsetForName() 89 public final Charset charsetForName(String charsetName, String classPath) { in charsetForName() 102 public Charset charsetForName(String charsetName, String classPath, ClassLoader loader) { in charsetForName() 158 private static final Charset getCharset(String icuCanonicalName, String optionsString) in getCharset() 272 List<Charset> icucs = new LinkedList<Charset>(); in loadAvailableICUCharsets() 277 Charset cs = getCharset(name, ""); in loadAvailableICUCharsets() 295 public final Iterator<Charset> charsets() { in charsets() 311 for (Charset cs : icuCharsets) { in getAvailableNames()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/ |
D | com_github_javaparser_Providers.txt | 1 Line 16) Charset.forName("utf-8") ==> java.nio.charset.Charset.forName(java.lang.String) 5 Line 29) encoding.name() ==> java.nio.charset.Charset.name() 6 …, UTF8) ==> com.github.javaparser.Providers.provider(java.io.InputStream, java.nio.charset.Charset) 7 …oding)) ==> com.github.javaparser.Providers.provider(java.io.InputStream, java.nio.charset.Charset) 10 …l(file), UTF8) ==> com.github.javaparser.Providers.provider(java.io.File, java.nio.charset.Charset) 12 …oding)) ==> com.github.javaparser.Providers.provider(java.io.InputStream, java.nio.charset.Charset) 16 …), UTF8) ==> com.github.javaparser.Providers.provider(java.nio.file.Path, java.nio.charset.Charset)
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/input/ |
D | ReversedLinesFileReader.java | 25 import java.nio.charset.Charset; 209 private final Charset charset; 229 this(file, DEFAULT_BLOCK_SIZE, Charset.defaultCharset()); in ReversedLinesFileReader() 241 public ReversedLinesFileReader(final File file, final Charset charset) throws IOException { in ReversedLinesFileReader() 256 …public ReversedLinesFileReader(final File file, final int blockSize, final Charset charset) throws… in ReversedLinesFileReader() 288 public ReversedLinesFileReader(final Path file, final Charset charset) throws IOException { in ReversedLinesFileReader() 303 …public ReversedLinesFileReader(final Path file, final int blockSize, final Charset charset) throws… in ReversedLinesFileReader() 318 } else if (this.charset == Charset.forName("Shift_JIS") || // Same as for UTF-8 in ReversedLinesFileReader() 320 … this.charset == Charset.forName("windows-31j") || // Windows code page 932 (Japanese) in ReversedLinesFileReader() 321 … this.charset == Charset.forName("x-windows-949") || // Windows code page 949 (Korean) in ReversedLinesFileReader() [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/io/ |
D | ByteSourceAsCharSourceReadBenchmark.java | 24 import java.nio.charset.Charset; 36 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 42 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 57 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 97 abstract String read(ByteSource byteSource, Charset cs) throws IOException; in read() 108 Charset charset; 113 charset = Charset.forName(charsetName); in setUp() 129 final Charset localCharset = charset; in timeCopy()
|
/external/guava/android/guava-tests/benchmark/com/google/common/io/ |
D | ByteSourceAsCharSourceReadBenchmark.java | 24 import java.nio.charset.Charset; 36 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 42 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 57 String read(ByteSource byteSource, Charset cs) throws IOException { in read() 97 abstract String read(ByteSource byteSource, Charset cs) throws IOException; in read() 108 Charset charset; 113 charset = Charset.forName(charsetName); in setUp() 129 final Charset localCharset = charset; in timeCopy()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ |
D | Providers.java | 4 import java.nio.charset.Charset; 16 public static final Charset UTF8 = Charset.forName("utf-8"); 25 public static Provider provider(InputStream input, Charset encoding) { in provider() 41 public static Provider provider(File file, Charset encoding) throws FileNotFoundException { in provider() 49 public static Provider provider(Path path, Charset encoding) throws IOException { in provider()
|
/external/apache-commons-io/src/main/java/org/apache/commons/io/output/ |
D | FileWriterWithEncoding.java | 25 import java.nio.charset.Charset; 67 if (encoding == null || encoding instanceof Charset) { in initWriter() 68 return new OutputStreamWriter(outputStream, Charsets.toCharset((Charset) encoding)); in initWriter() 95 public FileWriterWithEncoding(final File file, final Charset charset) throws IOException { in FileWriterWithEncoding() 109 …public FileWriterWithEncoding(final File file, final Charset encoding, final boolean append) throw… in FileWriterWithEncoding() 173 public FileWriterWithEncoding(final String fileName, final Charset charset) throws IOException { in FileWriterWithEncoding() 186 …public FileWriterWithEncoding(final String fileName, final Charset charset, final boolean append) … in FileWriterWithEncoding()
|
/external/glide/third_party/disklrucache/src/main/java/com/bumptech/glide/disklrucache/ |
D | Util.java | 24 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");
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | ZipEncodingHelper.java | 22 import java.nio.charset.Charset; 55 Charset cs = Charset.defaultCharset(); in getZipEncoding() 58 cs = Charset.forName(name); in getZipEncoding() 74 charsetName = Charset.defaultCharset().name(); in isUTF8()
|