@Override
	protected void inspectContents(File file, String contents) {
		StringBuffer buf = new StringBuffer();
		
		// Split it into lines
		StringSplitter splitter = new StringSplitter(contents, getLineEnding());
		
		// Scan each line
		int totalMatchesForThisFile = 0;
		int lineCount = 1;
		while (splitter.hasMoreElements()) {
			String line = (String) splitter.nextElement();
			
			boolean keepLooking = true;
			int indexStart = 0;
			do {
				int index = line.indexOf(query, indexStart);
				if (index == -1) {
					keepLooking = false;
				} else {
					totalMatchesForThisFile++;
					totalNumberOfMatches++;
					buf.append("  line: " + lineCount + " position: " + index + getLineEnding());

					indexStart = index + query.length();
				}
			} while (keepLooking);
			
			lineCount++;
		}
		
		// Output the results
		if (totalMatchesForThisFile > 0) {
			if (totalMatchesForThisFile == 1) {
				System.out.println("Found " + totalMatchesForThisFile + " match in file: " + file.getPath());
			} else {
				System.out.println("Found " + totalMatchesForThisFile + " matches in file: " + file.getPath());			
			}
			System.out.print(buf.toString());
			System.out.println("");
		}
	}