资源简介

实现了基本的谷歌翻译功能,其中链接部分可结合实际开发情况修改链接。

资源截图

代码片段和文件信息

/**
 * Copyright (c) Blackbear Inc All Rights Reserved.
 */
package com.fx.google;

import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.util.Map;

import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.client.methods.HttpRequestbase;
import org.apache.http.conn.scheme.PlainSocketFactory;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.scheme.SchemeRegistry;
import org.apac

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-09-18 11:32  GoogleTran\
     文件        1037  2017-09-19 13:06  GoogleTran\.classpath
     文件          86  2017-07-19 13:57  GoogleTran\.gitignore
     文件         386  2017-09-18 10:38  GoogleTran\.project
     目录           0  2017-09-18 11:44  GoogleTran\.settings\
     文件          85  2017-09-19 13:09  GoogleTran\.settings\org.eclipse.core.resources.prefs
     文件         598  2017-09-18 10:38  GoogleTran\.settings\org.eclipse.jdt.core.prefs
     文件         115  2017-07-19 13:57  GoogleTran\.travis.yml
     文件       44080  2017-07-19 13:57  GoogleTran\CHANGES
     文件        1102  2017-07-19 13:57  GoogleTran\LICENSE
     文件        2533  2017-07-19 13:57  GoogleTran\README.md
     目录           0  2017-09-19 14:51  GoogleTran\bin\
     目录           0  2017-09-19 14:51  GoogleTran\bin\com\
     目录           0  2017-09-19 14:51  GoogleTran\bin\com\fx\
     目录           0  2017-09-19 16:25  GoogleTran\bin\com\fx\google\
     文件        5397  2017-09-19 14:51  GoogleTran\bin\com\fx\google\HttpClientUtil.class
     文件        1262  2017-09-19 16:30  GoogleTran\bin\com\fx\google\Replace.class
     文件        4035  2017-09-19 14:51  GoogleTran\bin\com\fx\google\TranslateUtil.class
     目录           0  2017-09-18 12:00  GoogleTran\libs\
     文件      279383  2017-09-18 11:55  GoogleTran\libs\commons-httpclient-3.0.jar
     文件       65621  2017-09-18 11:50  GoogleTran\libs\commons-io-1.2.jar
     文件       60841  2017-09-18 11:55  GoogleTran\libs\commons-logging-1.1.1.jar
     文件       26520  2017-09-18 11:55  GoogleTran\libs\commons-logging-adapters-1.1.1.jar
     文件       52313  2017-09-18 11:55  GoogleTran\libs\commons-logging-api-1.1.1.jar
     文件      433368  2017-09-18 12:00  GoogleTran\libs\httpclient-4.2.5.jar
     文件      115625  2017-09-18 12:00  GoogleTran\libs\httpclient-cache-4.2.5.jar
     文件      227275  2017-09-18 12:00  GoogleTran\libs\httpcore-4.2.4.jar
     文件       26477  2017-09-18 12:00  GoogleTran\libs\httpmime-4.2.5.jar
     文件      293672  2017-09-18 11:31  GoogleTran\libs\jsoup-1.7.2.jar
     文件      432111  2017-09-18 11:31  GoogleTran\libs\velocity-engine-core-2.0.jar
     文件        7296  2017-07-19 13:57  GoogleTran\pom.xml
............此处省略7个文件信息

评论

共有 条评论