@Test public void parserWithDatasetContextLocalResource() throws IOException { ParserFactoryForDataset parserFactory = new ParserFactoryForDataset(new DatasetLocal(inStream -> inStream)); LabeledCSVParser parser = parserFactory.createParser(URI.create("classpath:/org/eol/globi/data/someResource.csv"), "UTF-8"); assertThat(parser.getLine(), is(new String[] { "valueA", "valueB"})); }
public LabeledCSVParser createParser(URI studyResource, String characterEncoding) throws IOException { InputStream is = dataset.retrieve(studyResource); return getLabeledCSVParser(is, characterEncoding); }
ParserFactoryForDataset implements ParserFactory { public LabeledCSVParser createParser(URI studyResource, String characterEncoding) throws IOException { InputStream is = dataset.retrieve(studyResource); return getLabeledCSVParser(is, characterEncoding); } }
ParserFactoryForDataset implements ParserFactory { public LabeledCSVParser createParser(URI studyResource, String characterEncoding) throws IOException { InputStream is = dataset.retrieve(studyResource); return getLabeledCSVParser(is, characterEncoding); } ParserFactoryForDataset(Dataset dataset); }
ParserFactoryForDataset implements ParserFactory { public LabeledCSVParser createParser(URI studyResource, String characterEncoding) throws IOException { InputStream is = dataset.retrieve(studyResource); return getLabeledCSVParser(is, characterEncoding); } ParserFactoryForDataset(Dataset dataset); LabeledCSVParser createParser(URI studyResource, String characterEncoding); static LabeledCSVParser getLabeledCSVParser(InputStream is, String characterEncoding); }
ParserFactoryForDataset implements ParserFactory { public LabeledCSVParser createParser(URI studyResource, String characterEncoding) throws IOException { InputStream is = dataset.retrieve(studyResource); return getLabeledCSVParser(is, characterEncoding); } ParserFactoryForDataset(Dataset dataset); LabeledCSVParser createParser(URI studyResource, String characterEncoding); static LabeledCSVParser getLabeledCSVParser(InputStream is, String characterEncoding);  }