0
我一直在嘗試使用XSSF和SAX事件API,因爲它在here中提到要讀取大的excel文件。在調用getValue()函數時,它們使用了幾個關鍵詞c,r,t,s,如下面的代碼所示。DefaultHandler類中startElement函數的可能值是什麼
if(name.equals("c")) {
// Print the cell reference
System.out.print(attributes.getValue("r") + " - ");
// Figure out if the value is an index in the SST
String cellType = attributes.getValue("t");
if(cellType != null && cellType.equals("s")) {
nextIsString = true;
} else {
nextIsString = false;
}
}
我需要弄清楚我可以使用的可能字符以及關於何時何地使用它的任何描述。我一直在通過網絡進行搜索以找到關於可能的關鍵詞quename('name',因爲它在這裏提到)和屬性的明確描述。但我無法找到明確的描述。
感謝有人能解釋一下。提前致謝。