OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ByteSource
(Results
1 - 24
of
24
) sorted by null
/external/guava/guava-tests/test/com/google/common/io/
MultiInputStreamTest.java
49
final
ByteSource
source = newByteSource(0, 50);
51
ByteSource
checker = new
ByteSource
() {
65
byte[] result =
ByteSource
.concat(checker, checker, checker).read();
70
List<
ByteSource
> sources = Lists.newArrayList();
76
ByteSource
joined =
ByteSource
.concat(sources);
81
ByteSource
source = newByteSource(0, 10);
82
ByteSource
joined =
ByteSource
.concat(source, source)
[
all
...]
ByteSourceTest.java
45
* Tests for the default implementations of {@code
ByteSource
} methods.
53
suite.addTest(ByteSourceTester.tests("
ByteSource
.wrap[byte[]]",
55
suite.addTest(ByteSourceTester.tests("
ByteSource
.empty[]",
167
ByteSource
byteSource
= new TestByteSource("hamburger\n".getBytes(Charsets.US_ASCII.name()));
170
assertEquals("cfa0c5002275c90508338a5cdb2a9781",
byteSource
.hash(Hashing.md5()).toString());
177
ByteSource
equalSource = new TestByteSource(bytes);
181
ByteSource
fewerBytes = new TestByteSource(newPreFilledByteArray(bytes.length / 2));
186
ByteSource
oneByteOff = new TestByteSource(copy);
232
ByteSource
source = new TestByteSource(newPreFilledByteArray(input))
[
all
...]
SourceSinkFactory.java
79
* Factory for {@link
ByteSource
} instances.
81
public interface ByteSourceFactory extends SourceFactory<
ByteSource
, byte[]> {
FileBackedOutputStreamTest.java
81
ByteSource
source = out.asByteSource();
88
assertTrue(
ByteSource
.wrap(data).slice(0, chunk1).contentEquals(source));
130
ByteSource
source = out.asByteSource();
151
ByteSource
source = out.asByteSource();
TestByteSource.java
33
public final class TestByteSource extends
ByteSource
implements TestStreamSupplier {
SourceSinkFactories.java
173
public
ByteSource
createSource(byte[] bytes) throws IOException {
210
public
ByteSource
createSource(byte[] bytes) throws IOException {
211
return
ByteSource
.wrap(bytes);
244
public
ByteSource
createSource(byte[] bytes) throws IOException {
245
return
ByteSource
.empty();
285
public
ByteSource
createSource(byte[] bytes) throws IOException {
422
public
ByteSource
createSource(byte[] bytes) throws IOException {
ByteSourceTester.java
41
* A generator of {@code TestSuite} instances for testing {@code
ByteSource
} implementations.
42
* Generates tests of a all methods on a {@code
ByteSource
} given various inputs the source is
48
public class ByteSourceTester extends SourceSinkTester<
ByteSource
, byte[], ByteSourceFactory> {
92
// test a random slice() of the
ByteSource
106
private
ByteSource
source;
170
assertTrue(source.contentEquals(new
ByteSource
() {
/external/guava/guava/src/com/google/common/io/
ByteSource.java
43
* {@code
ByteSource
} is not an open, stateful stream for input that can be read and closed.
46
* <p>{@code
ByteSource
} provides two kinds of methods:
59
public abstract class
ByteSource
implements InputSupplier<InputStream> {
66
protected
ByteSource
() {}
126
public
ByteSource
slice(long offset, long length) {
323
public boolean contentEquals(
ByteSource
other) throws IOException {
350
* Concatenates multiple {@link
ByteSource
} instances into a single source. Streams returned from
357
* @return a {@code
ByteSource
} containing the concatenated data
360
public static
ByteSource
concat(Iterable<? extends
ByteSource
> sources)
[
all
...]
FileBackedOutputStream.java
45
private final
ByteSource
source;
69
* not reset the data when the {@link
ByteSource
} returned by
81
* optionally resets the data when the {@link
ByteSource
} returned
87
* be called when the {@link
ByteSource
} returned by {@link
97
source = new
ByteSource
() {
112
source = new
ByteSource
() {
135
* Returns a readable {@link
ByteSource
} view of the data that has been
140
public
ByteSource
asByteSource() {
MultiInputStream.java
36
private Iterator<? extends
ByteSource
> it;
45
Iterator<? extends
ByteSource
> it) throws IOException {
ByteStreams.java
65
* @deprecated Use {@link
ByteSource
#wrap(byte[])} instead. This method is
71
return asInputSupplier(
ByteSource
.wrap(b));
82
* @deprecated Use {@code
ByteSource
.wrap(b).slice(off, len)} instead. This
88
return asInputSupplier(
ByteSource
.wrap(b).slice(off, len));
92
* Returns a new {@link
ByteSource
} that reads bytes from the given byte array.
95
* @deprecated Use {@link
ByteSource
#wrap(byte[])} instead. This method is
99
public static
ByteSource
asByteSource(byte[] b) {
100
return
ByteSource
.wrap(b);
126
* @deprecated Use {@link
ByteSource
#copyTo(ByteSink)} instead. This method
144
* @deprecated Use {@link
ByteSource
#copyTo(OutputStream)} instead. Thi
[
all
...]
Resources.java
66
* Returns a {@link
ByteSource
} that reads from the given URL.
70
public static
ByteSource
asByteSource(URL url) {
77
private static final class UrlByteSource extends
ByteSource
{
BaseEncoding.java
307
* Returns a {@code
ByteSource
} that reads base-encoded bytes from the specified
310
@GwtIncompatible("
ByteSource
,CharSource")
311
public final
ByteSource
decodingSource(final CharSource encodedSource) {
313
return new
ByteSource
() {
Files.java
109
* Returns a new {@link
ByteSource
} for reading bytes from the given file.
113
public static
ByteSource
asByteSource(File file) {
117
private static final class FileByteSource extends
ByteSource
{
379
* {@code from} to a {@code
ByteSource
} if necessary. This method is
[
all
...]
/prebuilts/devtools/tools/lib/
guava-17.0.jar
/prebuilts/misc/common/android-support-test/
espresso-core.jar
/prebuilts/misc/common/guava/
guava-15.0.jar
/prebuilts/misc/common/tradefed/
tradefed-prebuilt.jar
/prebuilts/tools/common/m2/repository/com/google/guava/guava/15.0/
guava-15.0.jar
/prebuilts/tools/common/m2/repository/com/google/guava/guava/17.0/
guava-17.0.jar
/prebuilts/tools/common/offline-m2/com/google/guava/guava/17.0/
guava-17.0.jar
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
guava-14.0.1.jar
/prebuilts/tools/common/gradle-plugins/repository/com/google/guava/guava/14.0/
guava-14.0.jar
/external/llvm/lib/Target/PowerPC/
PPCISelLowering.cpp
[
all
...]
Completed in 549 milliseconds