Java
F_URY
打酱油砖家
展开
-
Guava_常用
public interface LineProcessor<T> { /** * This method will be called once for each line. * @param line the line read from the input, without delimiter * **@return true to continue processing原创 2016-07-07 16:31:25 · 361 阅读 · 0 评论 -
lang3实用Utils
NumberUtils: 1. String转换为int Long double byte Bigdecimal. 2. 比较数组中max min.原创 2016-07-07 16:36:07 · 305 阅读 · 0 评论 -
Json串校验
import java.text.CharacterIterator;import java.text.StringCharacterIterator;public class JsonValidator { private CharacterIterator it; private char c; private int col; public JsonValidat翻译 2016-08-19 12:08:59 · 699 阅读 · 0 评论 -
爬虫
探索的问题: IP怎么绑定到一个HttpClient中? 绑定的目标实质是维持登陆状态. 更通常的做法是保持旧的cookie当IP绑定后 发生IP切换应该怎么处理?两位爬虫流程. 优缺点分析.1.抓取模块 2.解析模块 3.提取使用模块常见封爬虫策略(完善中): 1.众所周知:验证码. 2.简单的: UA和cookie. 3.非人类的访问速度. 及特征! 4.表单中添加隐藏的原创 2016-09-30 17:58:29 · 305 阅读 · 0 评论 -
抓取中行汇率
分析从今天开始过去30天时间里,中国人民银行公布的人民币汇率中间价,得到人民币对美元、欧元、港币的汇率,形成excel文件输 出。 汇率数据找相关的数据源,自己爬数据分析。package qunar.fury;import java.io.BufferedInputStream;import java.io.File;import java.io.FileNotFoundException;原创 2016-01-12 16:03:22 · 3894 阅读 · 0 评论 -
统计代码有效行
一、统计一个Java文件的有效行数。 1、有效不包括空行 2、不考虑代码见有多行注释的情况import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException;转载 2016-01-11 03:57:52 · 2887 阅读 · 0 评论