资源简介
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+“\n“).length();i++) {
out.write((byte)(result+“\n“).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\.checkst
文件 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\.settings\org.eclipse.jdt.core.prefs
文件 558 2014-10-30 12:49 rapidminer-master\.settings\org.eclipse.wst.common.component
文件 230 2014-10-30 12:49 rapidminer-master\.settings\org.eclipse.wst.common.project.facet.core.xm
文件 678 2014-10-30 12:49 rapidminer-master\.settings\org.eclipse.wst.html.core.prefs
文件 1170 2014-10-30 12:49 rapidminer-master\.settings\org.eclipse.wst.validation.prefs
文件 93 2014-10-30 12:49 rapidminer-master\.settings\org.jboss.ide.eclipse.as.core.prefs
文件 4184 2014-10-30 12:49 rapidminer-master\INSTALL.txt
文件 32387 2014-10-30 12:49 rapidminer-master\LICENSE
文件 3770 2014-10-30 12:49 rapidminer-master\README.md
目录 0 2014-10-30 12:49 rapidminer-master\ant\
文件 224277 2014-10-30 12:49 rapidminer-master\ant\ant-contrib-1.0b3.jar
文件 133599 2014-10-30 12:49 rapidminer-master\ant\appbundler-1.0.jar
文件 14687 2014-10-30 12:49 rapidminer-master\ant\aws-ant-tasks-0.4-SNAPSHOT.jar
文件 5852063 2014-10-30 12:49 rapidminer-master\ant\aws-java-sdk-1.3.8.jar
文件 232771 2014-10-30 12:49 rapidminer-master\ant\commons-codec-1.6.jar
文件 60686 2014-10-30 12:49 rapidminer-master\ant\commons-logging-1.1.1.jar
文件 351132 2014-10-30 12:49 rapidminer-master\ant\httpclient-4.1.1.jar
文件 181041 2014-10-30 12:49 rapidminer-master\ant\httpcore-4.1.jar
文件 232119 2014-10-30 12:49 rapidminer-master\ant\jackson-core-asl-1.9.10.jar
文件 780421 2014-10-30 12:49 rapidminer-master\ant\jackson-mapper-asl-1.9.10.jar
文件 185746 2014-10-30 12:49 rapidminer-master\ant\jsch-0.1.42.jar
文件 88767 2014-10-30 12:49 rapidminer-master\ant\rapidAntTasks.jar
文件 94656 2014-10-30 12:49 rapidminer-master\ant\redline-1.1.3.jar
目录 0 2014-10-30 12:49 rapidminer-master\ant\system\
文件 185746 2014-10-30 12:49 rapidminer-master\ant\system\jsch-0.1.42.jar
............此处省略5774个文件信息
评论
共有 条评论