public void add(File file) throws IOException { BufferedReader in = new BufferedReader(new FileReader(file)); String line; StringBuffer buffer = new StringBuffer(); while ((line = in.readLine()) != null) { buffer.append( line ); } in.close(); add( buffer );
public void add( String filePath ) throws IOException { add( new File(filePath) );
	public void add(File file) throws IOException {		BufferedReader in = new BufferedReader(new FileReader(file));		String line;		StringBuffer buffer = new StringBuffer();		while ((line = in.readLine()) != null) {			buffer.append( line );		}		in.close();		add( buffer );	}