Skip to content

Commit

Permalink
Change Example's Source
Browse files Browse the repository at this point in the history
  • Loading branch information
AvocadoMoon committed Sep 27, 2024
1 parent b1b657c commit b403a86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ public static ExportDataRepresentation.FormatExportDataRepresentation getJsonDat
}

private static void setExampleJSONData(){
try(BufferedInputStream remoteJSONFile = new BufferedInputStream(new URL("https://api.npoint.io/6de0febb887fdc4c2fa0").openStream())){
try(BufferedInputStream remoteJSONFile = new BufferedInputStream(new URL("https://vcell.org/export/n5examples.json").openStream())){
InputStreamReader remoteJSONFileReader = new InputStreamReader(remoteJSONFile);
Gson gson = new GsonBuilder().setPrettyPrinting().create();
exampleJSONData = gson.fromJson(remoteJSONFileReader, ExportDataRepresentation.class).formatData.get(N5ImageHandler.formatName);
} catch (IOException e) {
throw new RuntimeException(e);
System.err.print("Can't open example exports: " + e.getLocalizedMessage());
}
}

Expand Down

0 comments on commit b403a86

Please sign in to comment.