@Test public void simple() throws Exception { File root = injectDataSource("testing", folder.newFolder()); env.reload(); put(new File(root, "testing.txt"), "Hello, world!"); Set<String> results; try (ModelInput<StringBuilder> input = DirectIo.open(MockFormat.class, "testing", "*.txt")) { results = consume(input); } assertThat(results, is(set("Hello, world!"))); }
public static <T> ModelInput<T> open( Class<? extends DataFormat<T>> formatClass, String basePath, String resourcePattern) throws IOException { return STUB.get().open(formatClass, basePath, resourcePattern); }
DirectIo { public static <T> ModelInput<T> open( Class<? extends DataFormat<T>> formatClass, String basePath, String resourcePattern) throws IOException { return STUB.get().open(formatClass, basePath, resourcePattern); } }
DirectIo { public static <T> ModelInput<T> open( Class<? extends DataFormat<T>> formatClass, String basePath, String resourcePattern) throws IOException { return STUB.get().open(formatClass, basePath, resourcePattern); } private  DirectIo(); }
DirectIo { public static <T> ModelInput<T> open( Class<? extends DataFormat<T>> formatClass, String basePath, String resourcePattern) throws IOException { return STUB.get().open(formatClass, basePath, resourcePattern); } private  DirectIo(); static ModelInput<T> open(
            Class<? extends DataFormat<T>> formatClass,
            String basePath,
            String resourcePattern); static ApiStub<DirectIoApi> getStub(); }
DirectIo { public static <T> ModelInput<T> open( Class<? extends DataFormat<T>> formatClass, String basePath, String resourcePattern) throws IOException { return STUB.get().open(formatClass, basePath, resourcePattern); } private  DirectIo(); static ModelInput<T> open(
            Class<? extends DataFormat<T>> formatClass,
            String basePath,
            String resourcePattern); static ApiStub<DirectIoApi> getStub();  }