|
|
@ -33,7 +33,6 @@ import org.xml.sax.helpers.DefaultHandler; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author jipengfei |
|
|
|
* @author jipengfei |
|
|
|
* |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
|
|
|
|
|
|
|
@ -67,7 +66,7 @@ public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
try { |
|
|
|
try { |
|
|
|
Sheet sheet = analysisContext.getCurrentSheet(); |
|
|
|
Sheet sheet = analysisContext.getCurrentSheet(); |
|
|
|
if (!isAnalysisAllSheets(sheet)) { |
|
|
|
if (!isAnalysisAllSheets(sheet)) { |
|
|
|
if (this.sheetSourceList.size() <= sheet.getSheetNo()) { |
|
|
|
if (this.sheetSourceList.size() < sheet.getSheetNo() || sheet.getSheetNo() == 0) { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
InputStream sheetInputStream = this.sheetSourceList.get(sheet.getSheetNo() - 1).getInputStream(); |
|
|
|
InputStream sheetInputStream = this.sheetSourceList.get(sheet.getSheetNo() - 1).getInputStream(); |
|
|
@ -93,7 +92,7 @@ public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
if (sheet == null) { |
|
|
|
if (sheet == null) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
if (sheet.getSheetNo() <= 0) { |
|
|
|
if (sheet.getSheetNo() < 0) { |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
return false; |
|
|
|
return false; |
|
|
@ -139,7 +138,6 @@ public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
return sheets; |
|
|
|
return sheets; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void start() throws IOException, XmlException, ParserConfigurationException, SAXException { |
|
|
|
private void start() throws IOException, XmlException, ParserConfigurationException, SAXException { |
|
|
|
|
|
|
|
|
|
|
|
createTmpFile(); |
|
|
|
createTmpFile(); |
|
|
@ -270,5 +268,4 @@ public class SaxAnalyserV07 extends BaseSaxAnalyser { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|