Searched refs:asByteSource (Results 1 - 8 of 8) sorted by relevance

/external/guava/guava/src/com/google/common/io/
H A DResources.java57 * @deprecated Use {@link #asByteSource(URL)} instead. This method is
62 return ByteStreams.asInputSupplier(asByteSource(url));
70 public static ByteSource asByteSource(URL url) { method in class:Resources
92 return "Resources.asByteSource(" + url + ")";
120 return asByteSource(url).asCharSource(charset);
131 return asByteSource(url).read();
207 asByteSource(from).copyTo(to);
H A DFileBackedOutputStream.java70 * {@link #asByteSource} is finalized.
82 * by {@link #asByteSource} is finalized.
88 * #asByteSource} is finalized
124 * {@link #asByteSource()}.
126 * @deprecated Use {@link #asByteSource()} instead. This method is scheduled
131 return asByteSource();
140 public ByteSource asByteSource() { method in class:FileBackedOutputStream
H A DByteStreams.java99 public static ByteSource asByteSource(byte[] b) { method in class:ByteStreams
132 return asByteSource(from).copyTo(asByteSink(to));
150 return asByteSource(from).copyTo(to);
307 return asByteSource(supplier).read();
757 return asByteSource(supplier).size();
770 return asByteSource(supplier1).contentEquals(asByteSource(supplier2));
940 return asByteSource(supplier).hash(hashFunction);
1003 return asInputSupplier(asByteSource(supplier).slice(offset, length));
1031 return asByteSource(inpu
1066 public static ByteSource asByteSource( method in class:ByteStreams
[all...]
H A DFiles.java113 public static ByteSource asByteSource(File file) { method in class:Files
153 return "Files.asByteSource(" + file + ")";
218 return asByteSource(file).asCharSource(charset);
242 * @deprecated Use {@link #asByteSource(File)}. This method is scheduled for
248 return ByteStreams.asInputSupplier(asByteSource(file));
354 return asByteSource(file).read();
385 ByteStreams.asByteSource(from).copyTo(asByteSink(to));
406 * @deprecated Use {@code Files.asByteSource(from).copyTo(to)} after changing
413 asByteSource(from).copyTo(ByteStreams.asByteSink(to));
424 asByteSource(fro
[all...]
H A DCharStreams.java106 ByteStreams.asByteSource(in).asCharSource(charset));
/external/guava/guava-tests/test/com/google/common/io/
H A DFileBackedOutputStreamTest.java81 ByteSource source = out.asByteSource();
130 ByteSource source = out.asByteSource();
151 ByteSource source = out.asByteSource();
H A DSourceSinkFactories.java294 return Files.asByteSource(file);
424 return Resources.asByteSource(getFile().toURI().toURL());
H A DFilesTest.java57 suite.addTest(ByteSourceTester.tests("Files.asByteSource[File]",
81 Files.asByteSource(i18nFile).read()));
242 Files.copy(Files.asByteSource(i18nFile), temp);
306 assertTrue(Files.asByteSource(asciiFile)
307 .contentEquals(Files.asByteSource(asciiFile)));

Completed in 133 milliseconds