摘要:
public String getFileBase64(String filePath) throws IOException {String base64Code = null;InputStream in = null; byte[] data = null;try{ in = new FileInputStream(filePath); data = new byte[in.available()]; in.read(data); }catch (IOException e) { e.printStackTrace(); }finally { if(in != null) ... 阅读全文
摘要:
public static String replaceCharacter (String str) {if(str == null){ return ""; }Matcher m = Pattern.compile("<a\\s?[^>]+>", Pattern.CASE_INSENSITIVE).matcher(str);if(m.find()){str = m.replaceAll("<a>");} StringBuffer unicodeStr = new StringBuffer("& 阅读全文
摘要:
import java.awt.Color;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.IOException;import org.jfree.chart.ChartFactory;import org.jfree.chart.ChartUtilities;import org.jfree.chart.JFreeChart;import org.jfree.chart.axis.NumberAxis;import org.jfree.chart.axis.NumberTickUnit;impo 阅读全文
摘要:
每一个在其他城市流浪的孩子,在看到一些为理想而背井离乡的文章,或多或少的会有些自己的人生感悟。而感悟多了,总想把它保存起来,因为生怕自己一不小心就把它遗失了。所以,留下那一刻的心情,那一刻的内心感受,弥足珍贵。 保留个性积累经验作为一名毕业近三年的程序猿,生活中为它付出了很多的心力,已经不是简单的喜欢可以形容对它的感情。作为一个有时候有点偏激,有点个性,有自己的立场,挺乐观的一名程序猿,总希望自己能成为技术大拿,小资般的随意人生,可是还差太多,看看周围认识或了解的优秀程序员,业内的大拿们。需要具备独特的个性和及其丰富知识经验的程序员们才受欢迎,所以保留你的个性,积累你的技术经验,厚积薄发... 阅读全文