X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FLocalLibrary.java;h=3b0a8489aae281cd929e4f3de06b5376f73ba677;hb=0bb51c9c66697fe63ba066715207deabbcc1d479;hp=bd9fe07cf7d720aae04cb04da884695e9a01e41d;hpb=585ae2b8eb73f844fff4205fab2d4625830bec54;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/LocalLibrary.java b/src/be/nikiroo/fanfix/library/LocalLibrary.java index bd9fe07..3b0a848 100644 --- a/src/be/nikiroo/fanfix/library/LocalLibrary.java +++ b/src/be/nikiroo/fanfix/library/LocalLibrary.java @@ -100,7 +100,7 @@ public class LocalLibrary extends BasicLibrary { } @Override - public File getFile(String luid, Progress pg) { + public File getFile(String luid, Progress pg) throws IOException { Instance.getTraceHandler().trace( this.getClass().getSimpleName() + ": get file for " + luid); @@ -122,7 +122,7 @@ public class LocalLibrary extends BasicLibrary { } @Override - public Image getCover(String luid) { + public Image getCover(String luid) throws IOException { MetaData meta = getInfo(luid); if (meta != null) { if (meta.getCover() != null) { @@ -288,12 +288,12 @@ public class LocalLibrary extends BasicLibrary { } @Override - public void setSourceCover(String source, String luid) { + public void setSourceCover(String source, String luid) throws IOException { setSourceCover(source, getCover(luid)); } @Override - public void setAuthorCover(String author, String luid) { + public void setAuthorCover(String author, String luid) throws IOException { setAuthorCover(author, getCover(luid)); } @@ -410,15 +410,15 @@ public class LocalLibrary extends BasicLibrary { if (meta != null && meta.isImageDocument()) { return image; } - + return text; } - + /** * Return the default {@link OutputType} for this kind of {@link Story}. * * @param imageDocument - * TRUE for images document, FALSE for text documents + * TRUE for images document, FALSE for text documents * * @return the type */