パッケージ com.shimizukenta.jsonhub

インタフェース JsonHubPrettyPrinter


public interface JsonHubPrettyPrinter
This interface is implements of pretty-printing JSON.
関連項目:
JsonHubPrettyPrinterConfig
  • メソッドの詳細

    • print

      void print​(JsonHub value, java.io.Writer writer) throws java.io.IOException
      Write to writer
      パラメータ:
      value - the JsonHub
      writer - output writer
      例外:
      java.io.IOException - if IO failed
    • print

      void print​(JsonHub value, java.nio.file.Path path) throws java.io.IOException
      Write to File.
      パラメータ:
      value - the JsonHub
      path - output file-path
      例外:
      java.io.IOException - if IO failed
    • print

      void print​(JsonHub value, java.nio.file.Path path, java.nio.file.OpenOption... options) throws java.io.IOException
      Write to File with options.
      パラメータ:
      value - the JsonHub
      path - output file-path
      options - the File-open-options.
      例外:
      java.io.IOException - if IO failed
    • print

      java.lang.String print​(JsonHub value)
      Returns Pritty-JSON-String.
      パラメータ:
      value - the JsonHub
      戻り値:
      Pretty-JSON-String
    • getDefaultPrinter

      static JsonHubPrettyPrinter getDefaultPrinter()
      Returns Default-pretty-printer instance
      戻り値:
      Default-pretty-printer instance
    • newPrinter

      static JsonHubPrettyPrinter newPrinter​(JsonHubPrettyPrinterConfig config)
      Returns Customized-pretty-printer instance.
      パラメータ:
      config - the config
      戻り値:
      Customized-pretty-printer instance
    • getCompactPrinter

      static JsonHubPrettyPrinter getCompactPrinter()
      Returns Compact-pretty-printer instance.
      戻り値:
      Compact-JSON-pretty-printer instance
    • getNoneNullValueInObjectCompactPrinter

      static JsonHubPrettyPrinter getNoneNullValueInObjectCompactPrinter()
      Returns Compact-and-exclude-null-value-in-object-pretty-printer instance.
      戻り値:
      Compact-and-exclude-null-value-in-object-pretty-printer instance