Code example for InputStreamReader

Methods: closeread

		JGitTestUtil.deleteTrashFile(db, name);
	protected static void checkFile(File f, final String checkData)
			throws IOException { 
		Reader r = new InputStreamReader(new FileInputStream(f), "ISO-8859-1");
		try { 
			char[] data = new char[(int) f.length()];
			if (f.length() !=
				throw new IOException("Internal error reading file data from "+f);
			assertEquals(checkData, new String(data));
		} finally { 
	/** Test repository, initialized for this test case. */ 
	protected FileRepository db;
	/** Working directory of {@link #db}. */ 
Stop searching for code, let great code find you!  Add Codota to your java IDE