这是用Windows Live Writer写的一篇测试文档仅供测试
分类:
其他好文 时间:
2014-10-17 18:08:25
阅读次数:
144
Writer类从不直接使用,因为它是一个抽象类(有两个protected的构造函数)。它会通过它的某个子类以多态方式使用。它有5个write()方法,另外还有flush()和close()方法: protected?Writer()??????????...
分类:
其他好文 时间:
2014-10-17 01:05:34
阅读次数:
236
Java的内置字符集是Unicode的UTF-16编码。Java提供了一组API来读/写字符。注意这里是字符而不是字节。java.io.Reader类指定读取字符的API。java.io.Writer指定写字符的API。字节流与字符流相互转换的地方,就会使...
分类:
其他好文 时间:
2014-10-16 23:15:03
阅读次数:
195
Windows Live Writer是博客园推荐博客客户端。Windows Live Writer下载地址:http://download.live.com/writer。推荐文档:【超详细教程】使用Windows Live Writer 2012和Office Word 2013 发布文章到博客...
操作流程使用File类打开一个文件通过字节流或者字符流的子类。指定输出的位置。进行读/写操作关闭输入/出字节流与字符流在java.io包中操作文件内容主要有两大类:字节流字符流。两大类分为输入和输出操作,在字节流中输出数据主要是OutputStream完成,输入使用InputStream,在字符流冲...
分类:
其他好文 时间:
2014-10-15 00:56:19
阅读次数:
426
context.Response.ContentType=encode;using(StreamWriterwriter=newStreamWriter(context.Response.OutputStream,UTF8)){writer.Write(str);}上面代码常会报错:Bytes to...
分类:
其他好文 时间:
2014-10-14 20:15:59
阅读次数:
193
不重复造轮子。最靠谱的方法,还是用Apache
commons IOUtils
这样简单几行代码就搞定了
StringWriter writer = new StringWriter();
IOUtils.copy(inputStream, writer, encoding);
String theString = writer.toString();
或者
String theSt...
分类:
其他好文 时间:
2014-10-13 14:28:49
阅读次数:
193
>通过套接字连接服务器
Socket指代套接字
>读取任意网站的首页
---------
/**
* @author Lean @date:2014-10-9
*/
public class SocketSample {
public static void main(String[] args) {
BufferedWriter writer=null;
...
分类:
编程语言 时间:
2014-10-13 00:39:38
阅读次数:
349
本文承接自前文:http://blog.csdn.net/yuxikuo_1/article/details/39155335
1、JsonMake类
//.h
#include "cocos2d.h"
#include "../cocos2d/external/json/document.h"
#include "../cocos2d/external/json/writer.h"
#i...
分类:
Web程序 时间:
2014-10-12 00:14:37
阅读次数:
278
使用Windows Live Writer 编辑日志 一 意义 写博客日志是个需要坚持的好习惯。使用Windows Live Writer,能不受网页自带编辑器限制。 Markdown支持。安装markdown插件之后,可以对照编辑markdown文件。 重新修改。打开最近编辑的日志,就能对过去的日...