Class JSONMaker

java.lang.Object
se.datadosen.jalbum.JSONMaker

public class JSONMaker extends Object
Create JSON formatted data out of album object metadata
Since:
13
  • Constructor Details

  • Method Details

    • getPaging

      public int getPaging()
    • setPaging

      public void setPaging(int paging)
    • isMakeTree

      public boolean isMakeTree()
    • setMakeTree

      public void setMakeTree(boolean makeTree)
    • getIncludes

      public String[] getIncludes()
    • setIncludes

      public void setIncludes(String[] includes)
      List AlbumObject variables to add to the generated JSON data
      Parameters:
      includes -
    • forEach

      public void forEach(BiConsumer<AlbumObject,MyJSONObject> consumer)
      Visit all AlbumObjects that take part in generation of JSON data tree and apply consumer on each
      Parameters:
      consumer - Consumer that takes the current AlbumObject and resulting JSON node as parameter
      Since:
      15.4
    • getTreeAsString

      public String getTreeAsString(AlbumObject rootFolder) throws IOException
      Throws:
      IOException
    • getTree

      public MyJSONObject getTree(AlbumObject rootFolder) throws IOException
      Throws:
      IOException
    • makeDeepJSONData

      public void makeDeepJSONData(File outputDir) throws IOException
      Make one huge deep-data.json file in root of album based upon data.json files in subfolders
      Parameters:
      outputDir -
      Throws:
      IOException
      Since:
      16.0.1