rapidminer源码


rapidminer源码,压缩文件,文件内容详尽
资源截图
代码片段和文件信息
/*
 *  RapidMiner
 *
 *  Copyright (C) 2001-2013 by RapidMiner and the contributors
 *
 *  Complete list of developers available at our web site:
 *
 *       http://rapidminer.com
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as published by
 *  the Free Software Foundation either version 3 of the License or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Affero General Public License for more details.
 *
 *  You should have received a copy of the GNU Affero General Public License
 *  along with this program.  If not see http://www.gnu.org/licenses/.
 */
import java.io.BufferedOutputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * This class is used to add the missing image tags in the GUI Manual
 * document (they are missing due to the usage of pdflatex instead of latex).
 * 
 * @author Tobias Beckers Christian Lohmann Marcin Skirzynski
 */
public class HTMLImageAdder {

private RandomAccessFile htmlraf;
private DataOutputStream out;
private static String flink = “\[width=[0-9.]*\]([a-zA-Z0-9_]*.png)“;
private static String fFRAGMENT = ““;

public HTMLImageAdder(String pathHtmlFileIn) {
File htmlFile = new File(pathHtmlFileIn);
File fileOut = new File(htmlFile.getParent() “guimanualtemp.html“);

try {
htmlraf = new RandomAccessFile(htmlFile “r“);

catch (FileNotFoundException e) {
e.printStackTrace();
}
try {
out = new DataOutputStream(new
        BufferedOutputStream(new FileOutputStream(fileOut)));

catch (FileNotFoundException e) {
e.printStackTrace();
}
correct();
}

public void correct() {
String result;
String tmp;
try {
while(htmlraf.getFilePointer() != htmlraf.length()) {
tmp = htmlraf.readLine();
result = replacelinks(tmp);
for(int i=0;i<(result+“
“).length();i++) {
out.write((byte)(result+“
“).charAt(i));
}
}
out.close();
}
catch (IOException e) {
e.printStackTrace();
}

}

private static String replacelinks(String aHtmlTextWithlinks){
Pattern pattern = Pattern.compile(flink);
Matcher matcher = pattern.matcher(aHtmlTextWithlinks);
return matcher.replaceAll(fFRAGMENT);
}

public static void main(String[] args) {
new HTMLImageAdder(args[0]);
}
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-10-30 12:49  rapidminer-master
     文件         295  2014-10-30 12:49  rapidminer-master.checkstyle
     文件        5067  2014-10-30 12:49  rapidminer-master.classpath
     文件         183  2014-10-30 12:49  rapidminer-master.gitignore
     文件         999  2014-10-30 12:49  rapidminer-master.project
     目录           0  2014-10-30 12:49  rapidminer-master.settings
     文件       30666  2014-10-30 12:49  rapidminer-master.settingsorg.eclipse.jdt.core.prefs
     文件         558  2014-10-30 12:49  rapidminer-master.settingsorg.eclipse.wst.common.component
     文件         230  2014-10-30 12:49  rapidminer-master.settingsorg.eclipse.wst.common.project.facet.core.xml
     文件         678  2014-10-30 12:49  rapidminer-master.settingsorg.eclipse.wst.html.core.prefs
     文件        1170  2014-10-30 12:49  rapidminer-master.settingsorg.eclipse.wst.validation.prefs
     文件          93  2014-10-30 12:49  rapidminer-master.settingsorg.jboss.ide.eclipse.as.core.prefs
     文件        4184  2014-10-30 12:49  rapidminer-masterINSTALL.txt
     文件       32387  2014-10-30 12:49  rapidminer-masterLICENSE
     文件        3770  2014-10-30 12:49  rapidminer-masterREADME.md
     目录           0  2014-10-30 12:49  rapidminer-masterant
     文件      224277  2014-10-30 12:49  rapidminer-masterantant-contrib-1.0b3.jar
     文件      133599  2014-10-30 12:49  rapidminer-masterantappbundler-1.0.jar
     文件       14687  2014-10-30 12:49  rapidminer-masterantaws-ant-tasks-0.4-SNAPSHOT.jar
     文件     5852063  2014-10-30 12:49  rapidminer-masterantaws-java-sdk-1.3.8.jar
     文件      232771  2014-10-30 12:49  rapidminer-masterantcommons-codec-1.6.jar
     文件       60686  2014-10-30 12:49  rapidminer-masterantcommons-logging-1.1.1.jar
     文件      351132  2014-10-30 12:49  rapidminer-masteranthttpclient-4.1.1.jar
     文件      181041  2014-10-30 12:49  rapidminer-masteranthttpcore-4.1.jar
     文件      232119  2014-10-30 12:49  rapidminer-masterantjackson-core-asl-1.9.10.jar
     文件      780421  2014-10-30 12:49  rapidminer-masterantjackson-mapper-asl-1.9.10.jar
     文件      185746  2014-10-30 12:49  rapidminer-masterantjsch-0.1.42.jar
     文件       88767  2014-10-30 12:49  rapidminer-masterant
apidAntTasks.jar
     文件       94656  2014-10-30 12:49  rapidminer-masterant
edline-1.1.3.jar
     目录           0  2014-10-30 12:49  rapidminer-masterantsystem
     文件      185746  2014-10-30 12:49  rapidminer-masterantsystemjsch-0.1.42.jar
............此处省略5774个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)