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;
58 public static ByteSourceFactory byteArraySourceFactory() { in byteArraySourceFactory()
62 public static ByteSourceFactory emptyByteSourceFactory() { in emptyByteSourceFactory()
70 public static ByteSourceFactory fileByteSourceFactory() { in fileByteSourceFactory()
100 public static ByteSourceFactory urlByteSourceFactory() { in urlByteSourceFactory()
108 public static CharSourceFactory asCharSourceFactory(final ByteSourceFactory factory) { in asCharSourceFactory()
168 public static ByteSourceFactory asSlicedByteSourceFactory(final ByteSourceFactory factory,
171 return new ByteSourceFactory() {
207 private static class ByteArraySourceFactory implements ByteSourceFactory {
241 private static class EmptyByteSourceFactory implements ByteSourceFactory {
[all …]
DByteSourceTester.java19 import static com.google.common.io.SourceSinkFactory.ByteSourceFactory;
48 public class ByteSourceTester extends SourceSinkTester<ByteSource, byte[], ByteSourceFactory> {
53 static TestSuite tests(String name, ByteSourceFactory factory, boolean testAsCharSource) { in tests()
70 private static TestSuite suiteForString(ByteSourceFactory factory, String string, in suiteForString()
84 private static TestSuite suiteForBytes(ByteSourceFactory factory, byte[] bytes, in suiteForBytes()
98 ByteSourceFactory sliced = SourceSinkFactories.asSlicedByteSourceFactory(factory, off, len); in suiteForBytes()
108 public ByteSourceTester(ByteSourceFactory factory, byte[] bytes, in ByteSourceTester()
DSourceSinkFactory.java81 public interface ByteSourceFactory extends SourceFactory<ByteSource, byte[]> { interface