X-Git-Url: http://git.nikiroo.be/?p=nikiroo-utils.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fsupported%2FEpub.java;h=f8e467831381185244eae24b15d3a96a6cb0f6cb;hp=82af11855fdc299226fe2f52ca536f17a07d1d00;hb=d66deb8d8b30cff6b54db352eef34a3508939f84;hpb=0013f760d69fd7db2b298c3da5d89bc0b102eabf diff --git a/src/be/nikiroo/fanfix/supported/Epub.java b/src/be/nikiroo/fanfix/supported/Epub.java index 82af118..f8e4678 100644 --- a/src/be/nikiroo/fanfix/supported/Epub.java +++ b/src/be/nikiroo/fanfix/supported/Epub.java @@ -42,10 +42,8 @@ class Epub extends InfoText { try { return new File(fakeSource.toURI()); } catch (URISyntaxException e) { - Instance.getTraceHandler() - .error(new IOException( - "Cannot get the source file from the info-text URL", - e)); + Instance.getInstance().getTraceHandler() + .error(new IOException("Cannot get the source file from the info-text URL", e)); } return null; @@ -57,9 +55,7 @@ class Epub extends InfoText { try { fakeIn.reset(); } catch (IOException e) { - Instance.getTraceHandler() - .error(new IOException( - "Cannot reset the Epub Text stream", e)); + Instance.getInstance().getTraceHandler().error(new IOException("Cannot reset the Epub Text stream", e)); } return fakeIn; @@ -87,8 +83,7 @@ class Epub extends InfoText { ZipInputStream zipIn = null; try { zipIn = new ZipInputStream(in); - tmpDir = Instance.getTempFiles().createTempDir( - "fanfic-reader-parser"); + tmpDir = Instance.getInstance().getTempFiles().createTempDir("fanfic-reader-parser"); File tmp = new File(tmpDir, "file.txt"); File tmpInfo = new File(tmpDir, "file.info"); @@ -129,7 +124,7 @@ class Epub extends InfoText { try { cover = new Image(zipIn); } catch (Exception e) { - Instance.getTraceHandler().error(e); + Instance.getInstance().getTraceHandler().error(e); } } } else if (entry.getName().equals(getDataPrefix() + "URL")) {