?? contentreader.java.svn-base
字號(hào):
package net.paoding.analysis.examples.gettingstarted;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
public class ContentReader {
public static String readText(Class clazz) throws IOException {
InputStream in = clazz.getResourceAsStream("text.txt");
Reader re = new InputStreamReader(in, "UTF-8");
char[] chs = new char[1024];
int count;
String content = "";
while ((count = re.read(chs)) != -1) {
content = content + new String(chs, 0, count);
}
return content;
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -