Class PlayerPageExporter


  • @Singleton
    public class PlayerPageExporter
    extends java.lang.Object
    Handles exporting of /player page html, data and resources.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void export​(java.nio.file.Path toDirectory, java.util.UUID playerUUID, java.lang.String playerName)
      Perform export for a player page.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • export

        public void export​(java.nio.file.Path toDirectory,
                           java.util.UUID playerUUID,
                           java.lang.String playerName)
                    throws java.io.IOException
        Perform export for a player page.
        Parameters:
        toDirectory - Path to Export directory
        playerUUID - UUID of the player
        playerName - Name of the player
        Throws:
        java.io.IOException - If a template can not be read from jar/disk or the result written
        NotFoundException - If a file or resource that is being exported can not be found