@Test public void testGetReaderReturnsNullIfFileDoesntExist() { assertNull(io.getReader()); }
public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } }
FileIO { public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } } }
FileIO { public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } } FileIO(String path); }
FileIO { public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } } FileIO(String path); String getName(); String getPath(); boolean fileExists(); boolean directoryExists(); OutputStream getOutputStream(); InputStream getInputStream(); Writer getWriter(); Reader getReader(); void createFolderTree(boolean onlyParents); List<FileIO> getChildren(); void write(byte[] bytes); byte[] read(); }
FileIO { public Reader getReader() { try { InputStream is = getInputStream(); if (is == null) { return null; } return new InputStreamReader(new BufferedInputStream(is), "UTF-8"); } catch (IOException e) { return null; } } FileIO(String path); String getName(); String getPath(); boolean fileExists(); boolean directoryExists(); OutputStream getOutputStream(); InputStream getInputStream(); Writer getWriter(); Reader getReader(); void createFolderTree(boolean onlyParents); List<FileIO> getChildren(); void write(byte[] bytes); byte[] read();  }