if (errorHandler != null) {
errorHandler.fatalError(spe);
}
throw spe;
}
DataUri du = new DataUri(systemId);
TypedInputSource is = contentTypeParser.buildTypedInputSource(systemId, publicId,
du.getContentType());
is.setByteStream(du.getInputStream());
return is;
} else if (delegate != null) {
return delegate.resolveEntity(publicId, systemId);
} else {
throw new IOException("Unsupported URI scheme.");