From 924e133793a625c86818a83f7ff095b2dd493f47 Mon Sep 17 00:00:00 2001 From: AuroraLS3 <24460436+AuroraLS3@users.noreply.github.com> Date: Sat, 21 Jan 2023 13:14:15 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20plan-pla?= =?UTF-8?q?yer-analytics/Plan@0bce7880cd04baa518e3c464cae1e31a5d33af0b=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plan/storage/file/FileResource.html | 25 +++++++++--- .../plan/storage/file/JarResource.html | 39 +++++++++++++----- .../plan/storage/file/PlanFiles.html | 40 ++++++++++++------- .../plan/storage/file/Resource.html | 21 +++++++--- .../plan/storage/file/ResourceCache.html | 10 +++-- .../plan/storage/file/SpongePlanFiles.html | 8 ++-- .../storage/file/StringCachingResource.html | 19 +++++++-- .../plan/storage/file/StringResource.html | 19 +++++++-- all/index-all.html | 22 +++++++--- all/member-search-index.js | 2 +- 10 files changed, 149 insertions(+), 56 deletions(-) diff --git a/all/com/djrapitops/plan/storage/file/FileResource.html b/all/com/djrapitops/plan/storage/file/FileResource.html index e3c9ae83b..0143c6460 100644 --- a/all/com/djrapitops/plan/storage/file/FileResource.html +++ b/all/com/djrapitops/plan/storage/file/FileResource.html @@ -130,14 +130,17 @@ implements
Get the resource as a String with each line separated by CRLF newline characters \r\n.
-
String
-
getResourceName()
-
+
long
+
getLastModifiedDate()
+
 
+
String
+
getResourceName()
+
Get the name of this Resource.
-
static List<String>
-
lines(File file)
-
 
+
static List<String>
+
lines(File file)
+
 
@@ -199,6 +202,16 @@ implements +

getLastModifiedDate

+
public long getLastModifiedDate()
+
+
Specified by:
+
getLastModifiedDate in interface Resource
+
+ + +
  • asInputStream

    public InputStream asInputStream() diff --git a/all/com/djrapitops/plan/storage/file/JarResource.html b/all/com/djrapitops/plan/storage/file/JarResource.html index f8a8f7d7c..c699ae0f8 100644 --- a/all/com/djrapitops/plan/storage/file/JarResource.html +++ b/all/com/djrapitops/plan/storage/file/JarResource.html @@ -113,11 +113,13 @@ implements
    Constructor
    Description
    -
    JarResource(String resourceName, - JarResource.StreamFunction streamFunction)
    +
    JarResource(String resourceName, + JarResource.StreamFunction streamFunction, + LongSupplier lastModifiedSupplier)
     
    -
    JarResource(String resourceName, - JarResource.StreamSupplier streamSupplier)
    +
    JarResource(String resourceName, + JarResource.StreamSupplier streamSupplier, + LongSupplier lastModifiedSupplier)
     
    @@ -151,9 +153,12 @@ implements
    Get the resource as a String with each line separated by CRLF newline characters \r\n.
    -
    String
    -
    getResourceName()
    -
    +
    long
    + +
     
    + + +
    Get the name of this Resource.
    @@ -177,17 +182,19 @@ implements
  • -
    +

    JarResource

    public JarResource(String resourceName, - JarResource.StreamSupplier streamSupplier)
    + JarResource.StreamSupplier streamSupplier, + LongSupplier lastModifiedSupplier)
  • -
    +

    JarResource

    public JarResource(String resourceName, - JarResource.StreamFunction streamFunction)
    + JarResource.StreamFunction streamFunction, + LongSupplier lastModifiedSupplier)
  • @@ -199,6 +206,16 @@ implements
  • +
    +

    getLastModifiedDate

    +
    public long getLastModifiedDate()
    +
    +
    Specified by:
    +
    getLastModifiedDate in interface Resource
    +
    +
    +
  • +
  • asInputStream

    public InputStream asInputStream() diff --git a/all/com/djrapitops/plan/storage/file/PlanFiles.html b/all/com/djrapitops/plan/storage/file/PlanFiles.html index e83ce89a3..c2e310bf0 100644 --- a/all/com/djrapitops/plan/storage/file/PlanFiles.html +++ b/all/com/djrapitops/plan/storage/file/PlanFiles.html @@ -115,8 +115,9 @@ implements
    Constructor
    Description
    -
    PlanFiles(File dataFolder, +
    PlanFiles(File dataFolder, JarResource.StreamFunction getResourceStream, + dagger.Lazy<AssetVersions> assetVersions, dagger.Lazy<PlanConfig> config)
     
    @@ -164,23 +165,26 @@ implements Path
     
    - - +
    protected @NotNull Long
    +
     
    - - + +
     
    - - + +
     
    - -
    getResourceFromJar(String resourceName)
    -
    + + +
     
    + +
    getResourceFromJar(String resourceName)
    +
    Get a file in the jar as a Resource.
    - - -
    + + +
    Get a file from plugin folder as a Resource.
    @@ -215,12 +219,13 @@ implements
  • -
    +

    PlanFiles

    @Inject public PlanFiles(@Named("dataFolder") File dataFolder, JarResource.StreamFunction getResourceStream, + dagger.Lazy<AssetVersions> assetVersions, dagger.Lazy<PlanConfig> config)
  • @@ -312,6 +317,13 @@ implements +

    getLastModifiedForJarResource

    +
    @NotNull +protected @NotNull Long getLastModifiedForJarResource(String resourceName)
    +
    +
  • +
  • getResourceFromPluginFolder

    public Resource getResourceFromPluginFolder(String resourceName)
    diff --git a/all/com/djrapitops/plan/storage/file/Resource.html b/all/com/djrapitops/plan/storage/file/Resource.html index fb75f86ae..b7eeb39b7 100644 --- a/all/com/djrapitops/plan/storage/file/Resource.html +++ b/all/com/djrapitops/plan/storage/file/Resource.html @@ -120,14 +120,17 @@ loadScripts(document, 'script');
    Map to a WebResource used by ResourceService APIs.
    - - -
    +
    long
    + +
     
    + + +
    Get the name of this Resource.
    -
    static boolean
    -
    isTextResource(String resourceName)
    -
    +
    static boolean
    +
    isTextResource(String resourceName)
    +
    Check if a resource is a text based file.
    @@ -156,6 +159,12 @@ loadScripts(document, 'script');
  • +
    +

    getLastModifiedDate

    +
    long getLastModifiedDate()
    +
    +
  • +
  • asBytes

    byte[] asBytes() diff --git a/all/com/djrapitops/plan/storage/file/ResourceCache.html b/all/com/djrapitops/plan/storage/file/ResourceCache.html index d80a90543..fdd9974de 100644 --- a/all/com/djrapitops/plan/storage/file/ResourceCache.html +++ b/all/com/djrapitops/plan/storage/file/ResourceCache.html @@ -94,8 +94,9 @@ loadScripts(document, 'script');
    Method
    Description
    static void
    -
    cache(String resourceName, - String got)
    +
    cache(String resourceName, + String contents, + long lastModifiedDate)
     
    static void
    @@ -135,10 +136,11 @@ loadScripts(document, 'script');
  • -
    +

    cache

    public static void cache(String resourceName, - String got)
    + String contents, + long lastModifiedDate)
  • diff --git a/all/com/djrapitops/plan/storage/file/SpongePlanFiles.html b/all/com/djrapitops/plan/storage/file/SpongePlanFiles.html index 5abaead76..f462a22d7 100644 --- a/all/com/djrapitops/plan/storage/file/SpongePlanFiles.html +++ b/all/com/djrapitops/plan/storage/file/SpongePlanFiles.html @@ -106,9 +106,10 @@ loadScripts(document, 'script');
    Constructor
    Description
    -
    SpongePlanFiles(File dataFolder, +
    SpongePlanFiles(File dataFolder, JarResource.StreamFunction getResourceStream, PlanPlugin plugin, + dagger.Lazy<AssetVersions> assetVersions, dagger.Lazy<PlanConfig> config)
     
    @@ -135,7 +136,7 @@ loadScripts(document, 'script');
    +attemptToFind, disable, enable, getConfigFile, getCustomizableResource, getDataDirectory, getDataFolder, getFileFromPluginFolder, getJSONStorageDirectory, getLastModifiedForJarResource, getLocaleFile, getLogsDirectory, getLogsFolder, getResourceFromPluginFolder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    @@ -151,13 +152,14 @@ loadScripts(document, 'script');

    Constructor Details