From 461664be819508bb7e828961dd1da1f4b747520d Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 8 Aug 2022 22:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/me/ag2s/epublib/epub/EpubReader.java | 6 ++---- .../main/java/me/ag2s/epublib/epub/ResourcesLoader.java | 8 +++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/epublib/src/main/java/me/ag2s/epublib/epub/EpubReader.java b/epublib/src/main/java/me/ag2s/epublib/epub/EpubReader.java index 21a2b2e17..7f74b836f 100644 --- a/epublib/src/main/java/me/ag2s/epublib/epub/EpubReader.java +++ b/epublib/src/main/java/me/ag2s/epublib/epub/EpubReader.java @@ -69,8 +69,7 @@ public class EpubReader { */ public EpubBook readEpubLazy(@NonNull ZipFile zipFile, @NonNull String encoding) throws IOException { - return readEpubLazy(zipFile, encoding, - Arrays.asList(MediaTypes.mediaTypes)); + return readEpubLazy(zipFile, encoding, Arrays.asList(MediaTypes.mediaTypes)); } public EpubBook readEpub(@NonNull ZipInputStream in, @NonNull String encoding) throws IOException { @@ -107,8 +106,7 @@ public class EpubReader { } handleMimeType(result, resources); String packageResourceHref = getPackageResourceHref(resources); - Resource packageResource = processPackageResource(packageResourceHref, - result, resources); + Resource packageResource = processPackageResource(packageResourceHref, result, resources); result.setOpfResource(packageResource); Resource ncxResource = processNcxResource(packageResource, result); result.setNcxResource(ncxResource); diff --git a/epublib/src/main/java/me/ag2s/epublib/epub/ResourcesLoader.java b/epublib/src/main/java/me/ag2s/epublib/epub/ResourcesLoader.java index 058299db2..8c8bdd72e 100644 --- a/epublib/src/main/java/me/ag2s/epublib/epub/ResourcesLoader.java +++ b/epublib/src/main/java/me/ag2s/epublib/epub/ResourcesLoader.java @@ -46,9 +46,11 @@ public class ResourcesLoader { * @return Resources * @throws IOException IOException */ - public static Resources loadResources(ZipFile zipFile, - String defaultHtmlEncoding, - List lazyLoadedTypes) throws IOException { + public static Resources loadResources( + ZipFile zipFile, + String defaultHtmlEncoding, + List lazyLoadedTypes + ) throws IOException { LazyResourceProvider resourceProvider = new EpubResourceProvider(zipFile.getName());