public void addSharedStringReference(int index) throws SAXException { // Note: paul's test case currently only supports string references // in content, so presumably this is supposed to add a string // reference to the content? try { // consumer.foundContent(); // End any existing text node we have consumer.flushCharacters(); // And create a new reference output.addContentValue(references.createReference(index)); } catch (WBSAXException e) { throw new ExtendedSAXException(e); } }
public int addStringTableEntry(String string) throws SAXException { StringReference reference = references.createReference(string); return reference.resolveLogicalIndex(); }