当前位置: 技术问答>java相关
有没有关于:JAVA应用程序内嵌图像资源的方法的文章
来源: 互联网 发布时间:2017-03-23
本文导语: 本来IBM上有这么一个标题的,可进去的内容却是其它的 很多时候我们都不希望所使用的资源放在程序外面 | 1、把他字节话 try { PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWri...
本来IBM上有这么一个标题的,可进去的内容却是其它的
很多时候我们都不希望所使用的资源放在程序外面
很多时候我们都不希望所使用的资源放在程序外面
|
1、把他字节话
try {
PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWriter("d:\lcl\lcl.txt")));
for (int t = 0; t 11) lll = ".png";
RandomAccessFile ri=new RandomAccessFile("d:\lcl\l"+String.valueOf(t)+lll,"r");
out1.println("{");
byte [] map=new byte[(int)ri.length()];
ri.read(map,0,(int)ri.length());
//PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWriter("d:\lcl\t"+String.valueOf(t)+".txt")));
String str ="";
for (int i=0;i
try {
PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWriter("d:\lcl\lcl.txt")));
for (int t = 0; t 11) lll = ".png";
RandomAccessFile ri=new RandomAccessFile("d:\lcl\l"+String.valueOf(t)+lll,"r");
out1.println("{");
byte [] map=new byte[(int)ri.length()];
ri.read(map,0,(int)ri.length());
//PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWriter("d:\lcl\t"+String.valueOf(t)+".txt")));
String str ="";
for (int i=0;i