Searched refs:asCharSource (Results 1 – 6 of 6) sorted by relevance
/external/guava/guava/src/com/google/common/io/ |
D | CharStreams.java | 87 public static CharSource asCharSource(String string) { in asCharSource() method in CharStreams 106 ByteStreams.asByteSource(in).asCharSource(charset)); in newReaderSupplier() 159 return asCharSource(from).copyTo(asCharSink(to)); in copy() 177 return asCharSource(from).copyTo(to); in copy() 228 return asCharSource(supplier).read(); in toString() 259 return asCharSource(supplier).readFirstLine(); in readFirstLine() 390 return asCharSource(input); in join() 562 public static CharSource asCharSource(
|
D | Resources.java | 110 return CharStreams.asInputSupplier(asCharSource(url, charset)); in newReaderSupplier() 119 public static CharSource asCharSource(URL url, Charset charset) { in asCharSource() method in Resources 120 return asByteSource(url).asCharSource(charset); in asCharSource() 145 return asCharSource(url, charset).read(); in toString()
|
D | Files.java | 217 public static CharSource asCharSource(File file, Charset charset) { in asCharSource() method in Files 218 return asByteSource(file).asCharSource(charset); in asCharSource() 304 return CharStreams.asInputSupplier(asCharSource(file, charset)); in newReaderSupplier() 368 return asCharSource(file, charset).read(); in toString() 463 CharStreams.asCharSource(from).copyTo(asCharSink(to, charset)); in copy() 529 asCharSource(from, charset).copyTo(CharStreams.asCharSink(to)); in copy() 544 asCharSource(from, charset).copyTo(to); in copy() 691 return asCharSource(file, charset).readFirstLine(); in readFirstLine()
|
D | ByteSource.java | 72 public CharSource asCharSource(Charset charset) { in asCharSource() method in ByteSource 573 public CharSource asCharSource(Charset charset) { in asCharSource() method in ByteSource.EmptyByteSource
|
/external/guava/guava-tests/test/com/google/common/io/ |
D | SourceSinkFactories.java | 114 .asCharSource(Charsets.UTF_8); in asCharSourceFactory() 364 return Files.asCharSource(file, Charsets.UTF_8); 433 return Resources.asCharSource(getFile().toURI().toURL(), Charsets.UTF_8);
|
D | FilesTest.java | 180 Files.copy(Files.asCharSource(i18nFile, Charsets.UTF_8), temp, in testCopyCharacters()
|