return;
}
try {
InputStream inputStream = null;
JsonReader jsonReader = null;
if (null != input.getByteStream()) {
inputStream = input.getByteStream();
jsonReader = Json.createReader(new InputStreamReader(inputStream));
} else if (null != input.getCharacterStream()) {
jsonReader = Json.createReader(input.getCharacterStream());
} else {
try {
URL url = new URL(input.getSystemId());
inputStream = url.openStream();
} catch (MalformedURLException malformedURLException) {
try {
inputStream = new FileInputStream(input.getSystemId());
} catch (FileNotFoundException fileNotFoundException) {
throw malformedURLException;
}
}
jsonReader = Json.createReader(new InputStreamReader(inputStream));
}
if (jsonReader != null) {
JsonStructure structure = jsonReader.read();
parseRoot(structure);
}
if (null != inputStream) {
inputStream.close();