アットウィキロゴ

p66

package music2;
 
import tool.*; 
import java.io.File;
 
public class pro {
 
    int s,datanumber;
String[] data=new String[40000];
String[] link=new String[40000];
  String[] name=new String[40000];
String[] music=new String[40000];
 
    public static void main(String[] args) {
       pro t=new pro();
    }
    pro(){
 
        File f=new File("profile");
        String[] ff=f.list();
 
        int tr=1238;
        int sx=0;
        for(tr=0;tr<ff.length;tr++){
 
           readfile sub2=new readfile();
        sub2.makedata("profile/"+ff[tr],"UTF-8");
        data=sub2.data;
        datanumber=sub2.datanumber;
 
        String date="";
 
        String str="";
        int s1=1;
        for(s=1;s<datanumber;s++){
 
     if(data[s].indexOf("<div id=\"db\">")>-1)s1=s;   
        }
 
        int s2=1;
        for(s=s1;s<datanumber;s++){
 
     if(data[s].indexOf("<!-- タブ開始 -->")>-1)s2=s;   
        }
        sx=0;
        String strx="";
          for(s=s1;s<s2;s++){
      strx=strx+data[s];
 
 
          }
 
 
 
             String[] x=strx.split("</dd>");
 
               for(s=0;s<x.length;s++){
                music[s+1]=x[s];
 
 
          }
 
 
 
        writefile sub5=new writefile();
        sub5.data=music;
        sub5.datanumber=x.length;
       sub5.makedata("p/"+ff[tr]);
 
        }
 
 
 
 
 
    }
    String change(String str){
 
        int n;
        for(n=1;n<11;n++){
        str=rev(str);    
        }
 
        str=str.replace(" ","");
 
        return str;
    }
 
 String rev(String str){
 
        if(str==null)str="";
 
        int p1=str.indexOf("<");
        int p2=str.indexOf(">",p1);
        String strx="";
        if(p2>-1)strx=str.substring(p1,p2+1);
        str=str.replace(strx,"");
 
        return str;
    }    
 
 
}
 
最終更新:2016年09月09日 08:28