kz.greetgo.msoffice.xlsx.reader.StringsHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.msoffice Show documentation
Show all versions of greetgo.msoffice Show documentation
greetgo library to generate or parse MS Office files
package kz.greetgo.msoffice.xlsx.reader;
import org.xml.sax.Attributes;
public class StringsHandler extends AbstractXmlHandler {
private final StoredStrings storedStrings;
StringsHandler(StoredStrings storedStrings) {
this.storedStrings = storedStrings;
}
@Override
protected void startTag(String tagPath, Attributes attributes) {}
@Override
protected void endTag(String tagPath) {
if ("/sst/si/t".equals(tagPath)) {
storedStrings.append(text());
}
}
}