* Copyright (c) 2013, Francis Galiegue <firstname.lastname@example.org>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Lesser GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Lesser GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
This uses a map of
instances to fetch the contents
of a URI as an
, then tries and turns this content into
JSON using an
Normally, you will never use this class directly.
Note that it uses
to deserialize, for
instances as values)
java.lang.NullPointerExceptionscheme is null
The typical use case for this is if you have a local copy of a schema whose id is normally unreachable. You can transform all references to this schema's URI to another URI which is reachable by your application.
Note that the given strings will be considered as JSON References, and that both arguments must be valid absolute JSON References. For the recall, there is more to it than URIs being absolute: their fragment part must also be empty or null.
errmsg = "source URI " + from + " is not an absolute JSON reference";
errmsg = "destination URI " + to + " is not an absolute JSON reference";
com.github.fge.jsonschema.processing.ProcessingExceptionscheme is not registered, failed to get content, or content is not JSON
if (downloader == null)