Home
last modified time | relevance | path

Searched refs:ByteSourceFactory (Results 1 – 3 of 3) sorted by relevance

/external/guava/guava-tests/test/com/google/common/io/
DSourceSinkFactories.java21 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
57 public static ByteSourceFactory byteArraySourceFactory() { in byteArraySourceFactory()
61 public static ByteSourceFactory emptyByteSourceFactory() { in emptyByteSourceFactory()
69 public static ByteSourceFactory fileByteSourceFactory() { in fileByteSourceFactory()
95 public static ByteSourceFactory urlByteSourceFactory() { in urlByteSourceFactory()
103 public static CharSourceFactory asCharSourceFactory(final ByteSourceFactory factory) { in asCharSourceFactory()
154 public static ByteSourceFactory asSlicedByteSourceFactory(final ByteSourceFactory factory,
157 return new ByteSourceFactory() {
193 private static class ByteArraySourceFactory implements ByteSourceFactory {
227 private static class EmptyByteSourceFactory implements ByteSourceFactory {
[all …]
DByteSourceTester.java19 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
47 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> {
52 static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) { in tests()
65 private static TestSuite suiteForString(ByteSourceFactory factory, String string, in suiteForString()
74 private static TestSuite suiteForBytes(ByteSourceFactory factory, byte[] bytes, in suiteForBytes()
88 ByteSourceFactory sliced = SourceSinkFactories.asSlicedByteSourceFactory(factory, off, len); in suiteForBytes()
98 public ByteSourceTester(ByteSourceFactory factory, byte[] bytes, in ByteSourceTester()
DSourceSinkFactory.java81 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> { interface