}
@Override
public void doLoad(InputStream inputStream, Map<?, ?> options) throws IOException
{
XMLLoad xmlLoad = createXMLLoad();
if (options == null)
{
options = Collections.EMPTY_MAP;
}
ResourceHandler handler = (ResourceHandler)options.get(OPTION_RESOURCE_HANDLER);
if (handler != null)
{
handler.preLoad(this, inputStream, options);
}
xmlLoad.load(this, inputStream, options);
xmlLoad = null;
if (handler != null)
{
handler.postLoad(this, inputStream, options);