07 2017 档案

摘要:http://blog.csdn.net/javandroid/article/details/29884033 阅读全文
posted @ 2017-07-25 17:59 samcheng 阅读(114) 评论(0) 推荐(0) 编辑
摘要:1.https://www.opengps.cn/Data/IP/LocHighAcc.aspx(精确到大致位置) 2.https://www.iplocation.net(国外的) 3.http://www.ip138.com(国内的) 阅读全文
posted @ 2017-07-23 06:24 samcheng 阅读(716) 评论(0) 推荐(0) 编辑
摘要:思路: 1.创建一个ServerSocket对象。 2.调用ServerSocket对象的accept方法,等待连接,连接成功会返回一个socket对象,否则一直阻塞等待。 3.从Socket对象中获取InputStream与OutputStream字节流,这两个流分别对应request请求与res 阅读全文
posted @ 2017-07-12 16:49 samcheng 阅读(647) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-12 12:06 samcheng 阅读(649) 评论(0) 推荐(0) 编辑
摘要:HTTP工作原理: HTTP协议定义Web客户端如何从Web服务器请求Web页面,以及服务器如何把Web页面传送给客户端。HTTP协议采用了请求/响应模型。客户端向服务器发送一个请求报文,请求报文包含请求的方法、URL、协议版本、请求头部和请求数据。服务器以一个状态行作为响应,响应的内容包括协议的版 阅读全文
posted @ 2017-07-10 16:33 samcheng 阅读(263) 评论(0) 推荐(0) 编辑
摘要:byte数组转换成longpublic long byteArrayToLong(byte[] data) throws IOException { ByteArrayInputStream bai = new ByteArrayInputStream(data); DataInputStream dis =new DataInputStream(bai); return... 阅读全文
posted @ 2017-07-08 12:20 samcheng 阅读(4210) 评论(0) 推荐(0) 编辑
摘要:<span style="font-size: x-large;"><strong>1ª Temporada</strong></span> 解析style样式标签方法:Document.getElementsByAttributeValue("style","font-size: x-large; 阅读全文
posted @ 2017-07-04 19:20 samcheng 阅读(601) 评论(0) 推荐(0) 编辑