@Override public void beginHeading(int level, Attributes attributes) { this.level = level; this.attributes = attributes; buf = new StringBuilder(); offset = getLocator().getDocumentOffset(); length = getLocator().getLineLength(); }
currentItem.setKind(kind); } else { registerId(attributes.getId());
@Override public void image(Attributes attributes, String url) { registerId(attributes.getId()); }
@Override public void beginSpan(SpanType type, Attributes attributes) { registerId(attributes.getId()); }
@Override public void beginBlock(BlockType type, Attributes attributes) { registerId(attributes.getId()); }
public DocumentBuilder createOutlineUpdater(OutlineItem rootItem) { return new OutlineBuilder(rootItem, labelMaxLength); }
@Override public void imageLink(Attributes linkAttributes, Attributes ImageAttributes, String href, String imageUrl) { super.imageLink(linkAttributes, ImageAttributes, href, imageUrl); processLink(getLocator(), href); } }
@Override public void beginSpan(SpanType type, Attributes attributes) { super.beginSpan(type, attributes); if (type == SpanType.LINK) { if (attributes instanceof LinkAttributes) { LinkAttributes linkAttributes = (LinkAttributes) attributes; processLink(getLocator(), linkAttributes.getHref()); } } }
@Override public void link(Attributes attributes, String hrefOrHashName, String text) { registerId(attributes.getId()); if (buf != null) { buf.append(text); } }
@Override public void imageLink(Attributes linkAttributes, Attributes imageAttributes, String href, String imageUrl) { registerId(linkAttributes.getId()); registerId(imageAttributes.getId()); }
@Override public void link(Attributes attributes, String hrefOrHashName, String text) { super.link(attributes, hrefOrHashName, text); processLink(getLocator(), hrefOrHashName); }