Example usage for org.apache.poi.xssf.model SharedStringsTable addEntry

List of usage examples for org.apache.poi.xssf.model SharedStringsTable addEntry

Introduction

In this page you can find the example usage for org.apache.poi.xssf.model SharedStringsTable addEntry.

Prototype

@Removal(version = "4.2") 
public int addEntry(CTRst st) 

Source Link

Document

Add an entry to this Shared String table (a new value is appended to the end).

Usage

From source file:org.pentaho.di.trans.steps.excelinput.staxpoi.StaxPoiSheetTest.java

License:Apache License

private SharedStringsTable mockSharedStringsTable(String... strings) {
    SharedStringsTable sst = new SharedStringsTable();
    for (String str : strings) {
        CTRst st = CTRst.Factory.newInstance();
        st.setT(str);/*from ww  w. j a  v a2s .c  o m*/
        sst.addEntry(st);
    }
    return sst;
}