@Test public void readByString_parsingSuccessful() throws IOException { final XmlDataReader reader = new XmlDataReader(); final String dataAsString = CharStreams.toString(new InputStreamReader(DATA_URL.openStream())); final Data data = reader.read(dataAsString); assertThat(data.getVersion()).isEqualTo(TestXmlDataStore.VERSION_OLDER); }
@Override public Data read(@Nonnull final String data) { Check.notNull(data, "data"); return readXml(new ByteArrayInputStream(data.getBytes(DEFAULT_CHARSET)), DEFAULT_CHARSET); }
XmlDataReader implements DataReader { @Override public Data read(@Nonnull final String data) { Check.notNull(data, "data"); return readXml(new ByteArrayInputStream(data.getBytes(DEFAULT_CHARSET)), DEFAULT_CHARSET); } }
XmlDataReader implements DataReader { @Override public Data read(@Nonnull final String data) { Check.notNull(data, "data"); return readXml(new ByteArrayInputStream(data.getBytes(DEFAULT_CHARSET)), DEFAULT_CHARSET); }  }
XmlDataReader implements DataReader { @Override public Data read(@Nonnull final String data) { Check.notNull(data, "data"); return readXml(new ByteArrayInputStream(data.getBytes(DEFAULT_CHARSET)), DEFAULT_CHARSET); }  @Override Data read(@Nonnull final String data); @Override Data read(@Nonnull final URL url, @Nonnull final Charset charset); }
XmlDataReader implements DataReader { @Override public Data read(@Nonnull final String data) { Check.notNull(data, "data"); return readXml(new ByteArrayInputStream(data.getBytes(DEFAULT_CHARSET)), DEFAULT_CHARSET); }  @Override Data read(@Nonnull final String data); @Override Data read(@Nonnull final URL url, @Nonnull final Charset charset);  }