Skip to content

Commit 3a78ac8

Browse files
author
langpf1
committed
添加新资料
1 parent b6f08d9 commit 3a78ac8

5 files changed

+48
-0
lines changed

Diff for: Java注释规范整理.docx

21.4 KB
Binary file not shown.

Diff for: 如何移除eclipse的汉化包.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
��һ���� eclipse/plugins/�½����� nl_zh_��jarȫ��ɾ��
2+
3+
�ڶ����� eclipse/features/ ������ _zh���ļ���ɾ��
4+
5+
Ȼ������eclipse����Ϥ��Ӣ�Ľ����Dz��ǻ����ˣ�jadclipseҲ������������

Diff for: 编写高质量Java代码.pdf

964 KB
Binary file not shown.

Diff for: 设计模式_李长山.pptx

512 KB
Binary file not shown.

Diff for: 输入输出重定向.txt

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import java.io.OutputStream;
2+
import java.io.PrintStream;
3+
4+
5+
public class TestSetIO {
6+
7+
/**
8+
* ����ע��
9+
*
10+
* Returns ��������
11+
*/
12+
public static void main(String[] args) {
13+
14+
PrintStream ps = System.out;
15+
TestSetIO setIO = new TestSetIO();
16+
PrintStream out = new FakePrintStream(System.out);
17+
System.setOut(out);
18+
setIO.printMethod();
19+
String tmpStr = ((FakePrintStream)out).getStr();
20+
System.setOut(ps);
21+
System.out.println("FakePrintStream : " + tmpStr);
22+
}
23+
private void printMethod() {
24+
System.out.println(" in printMethod ");
25+
}
26+
27+
}
28+
29+
class FakePrintStream extends PrintStream{
30+
private StringBuilder str = new StringBuilder();
31+
public FakePrintStream(OutputStream out){
32+
super(out);
33+
}
34+
@Override
35+
public void write(byte buf[], int off, int len){
36+
str.append(new String(buf, off, len));
37+
}
38+
public String getStr(){
39+
return str.toString();
40+
}
41+
}
42+
43+
--------------------------------------------------------------------------------

0 commit comments

Comments
 (0)