📄 mkisofsoutputanalyzer.java
字号:
/* * MKISOFSOutputExtractor.java * * Created on February 5, 2003, 4:59 PM */package jcdwriter.model;import java.util.Vector;/** * * @author rmallappa */public class MKISOFSOutputAnalyzer extends OutputAnalyzer{ public MKISOFSOutputAnalyzer() { } public void processOutputLine(String line) { percentComplete(extractPercentComplete(line)); } public int extractPercentComplete(String line) { int endPosition = line.indexOf("% done"); if ((endPosition > 0) && endPosition < line.length()){ /* we found something that indicates progress */ try { return ((int)((Float.valueOf(line.substring(0, endPosition)).floatValue()))); } catch (NumberFormatException nfe){ /* Just that we could not read the number */ System.out.println("Could not read progress"); } } return 0; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -