@Test
	public void httpCount() {
		Path path = Paths.get("D:\\\\Download\\SecureCRT\\logs\\clientad.yy.com.log.16.gz");
		File file = path.toFile();
		
		String dateStr = "26/Apr/2015:14";
		String line = null;
		int length = "[26/Apr/2015:14:".length();
		int count = 0;
		
		try (FileInputStream fis = new FileInputStream(file);
				GZIPInputStream gzis = new GZIPInputStream(fis);
				InputStreamReader isr = new InputStreamReader(gzis);
				BufferedReader br = new BufferedReader(isr)) {
			while ((line = br.readLine()) != null) {
				String[] strings =line.split(" ");
				if (strings.length == 13) {
					if (strings[3].contains(dateStr)) {
						Integer minute = Integer.parseInt(strings[3].substring(length, length + 2));
						if (minute > 30) {
							count ++;
						}
					} 
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} 
		
		System.out.println("=============统计结果=============" + count);
	}