MwLocalDumpFile implements MwDumpFile { @Override public BufferedReader getDumpFileReader() throws IOException { return new BufferedReader(new InputStreamReader(getDumpFileStream(), StandardCharsets.UTF_8)); } MwLocalDumpFile(String filepath);  MwLocalDumpFile(String filePath, DumpContentType dumpContentType,
			String dateStamp, String projectName); Path getPath(); @Override boolean isAvailable(); @Override String getProjectName(); @Override String getDateStamp(); @Override DumpContentType getDumpContentType(); @Override InputStream getDumpFileStream(); @Override BufferedReader getDumpFileReader(); @Override void prepareDumpFile(); @Override String toString();  }
@Test public void testJsonReader() throws IOException { this.dm.setFileContents(this.dmPath .resolve("testdump-20150512.json.gz"), "Test contents", CompressionType.GZIP); MwLocalDumpFile df = new MwLocalDumpFile( "/testdump-20150512.json.gz"); BufferedReader br = df.getDumpFileReader(); assertEquals("Test contents", br.readLine()); assertNull(br.readLine()); }
@Test(expected = IOException.class) public void testUnavailableReader() throws IOException { MwLocalDumpFile df = new MwLocalDumpFile( "/testdump-20150512.json.gz"); df.getDumpFileReader(); }