public interface InputData
Modifier and Type | Method and Description |
---|---|
boolean |
isCacheable(Site site,
Page page)
Returns true if this
InputData is cacheable for the current site and if possible page. |
default boolean |
shouldBeCached(Site site,
Page page)
Returns true if the resulting SAX events should be actually stored in the central
PageElementCache .It may be useful to return false for some InputData managing their own cache and don't wanting to waste space in the central cache. This method is only called if isCacheable(Site, Page) returns true. |
void |
toSAX(ContentHandler handler)
Generates SAX events for providing data.
|
boolean isCacheable(Site site, Page page)
InputData
is cacheable for the current site and if possible page.default boolean shouldBeCached(Site site, Page page)
PageElementCache
.isCacheable(Site, Page)
returns true.site
- the current Site
.page
- the current Page
. Can be null.PageElementCache
.void toSAX(ContentHandler handler) throws SAXException, ProcessingException
handler
- the content handler to SAX into.SAXException
- if an error occurs while SAXing.ProcessingException
- if an error occurs during processing.