62,616
社区成员
发帖
与我相关
我的任务
分享
public class TestStream {
public static void main(String[] args) throws Exception{
//q.txt带有中文和中文特有的标点符号。保存为ANSI编码格式
InputStream in = new FileInputStream("c:\\q.txt");
byte[] b = new byte[32];
int size = in.read(b);
while(size!=-1){
//下面这样会有很多乱码。
System.out.print(new String(b, 0, size));
//如果我把q.txt保存为UTF-8,然后象下面这样构造String, 乱码没了。
//但是有少量问号
//System.out.print(new String(b, 0, size, "UTF-8"));
size = in.read(b);
}
in.close();
}
}
进行被过滤黑名单的更新
。同时会另外启用两个xnet2.ex
e线程,与211.161.1.134 和 203.171.
236.231进行通讯,后者ip为 河南郑州景安计算机网络 ,前者
是北京 长宽的一个ip,具体来源不明。
坝完美得全部符合。它的存在真的是为了保护未成人收到色情网站
的毒害吗?未必,监视大量应用程序,定时对系统进行截图,对代理软
件进行封锁,然后将用户电脑中的各种资料秘密传往某处。
import java.io.*;
public class TestStream {
public static void main(String[] args) throws Exception{
//q.txt带有中文和中文特有的标点符号。保存为ANSI编码格式
InputStream in = new FileInputStream("c:\\q.txt");
byte[] b = new byte[640];
int size = in.read(b);
BufferedOutputStream bos=new BufferedOutputStream(System.out);
while(size!=-1){
//下面这样会有很多乱码。
System.out.print(new String(b, 0, size));
//如果我把q.txt保存为UTF-8,然后象下面这样构造String, 乱码没了。
//但是有少量问号
//System.out.print(new String(b, 0, size, "UTF-8"));
//bos.write(b,0,32);
size = in.read(b);
}
in.close();
}