パッケージ com.shimizukenta.jsonhub

インタフェース JsoncReader


public interface JsoncReader
This interface is JSONC reader to JsonHub.

Read JSONC and parse to JsonHub.

  • Comments //
  • Comments /* ...
  • Trailing Comma(,) in Array
  • Trailing Comma(,) in Object
  • メソッドの概要

    staticメソッド
    修飾子とタイプ メソッド 説明
    static JsonHub readFile​(java.nio.file.Path path)
    Returns parsed JsonHub instance from JSONC file.
    static JsonHub readLine​(java.lang.CharSequence line)
    Returns parsed JsonHub instance from JSONC String.
    static JsonHub readLines​(java.util.List<? extends java.lang.CharSequence> lines)
    Returns parsed JsonHub instance from JSONC lines.
    static JsonHub readReader​(java.io.Reader reader)
    Returns parsed JsonHub instance from JSONC reader.
  • メソッドの詳細

    • readLine

      static JsonHub readLine​(java.lang.CharSequence line)
      Returns parsed JsonHub instance from JSONC String.
      パラメータ:
      line - of JSONC String.
      戻り値:
      parsed JsonHub.
      例外:
      JsonHubParseException - if parse failed
      JsoncReaderException - if parse failed
    • readLines

      static JsonHub readLines​(java.util.List<? extends java.lang.CharSequence> lines)
      Returns parsed JsonHub instance from JSONC lines.
      パラメータ:
      lines - of JSONC String
      戻り値:
      parsed JsonHub.
      例外:
      JsonHubParseException - if parse failed
      JsoncReaderException - if parse failed
    • readReader

      static JsonHub readReader​(java.io.Reader reader) throws java.io.IOException
      Returns parsed JsonHub instance from JSONC reader.
      パラメータ:
      reader - of JSONC
      戻り値:
      parsed JsonHub.
      例外:
      java.io.IOException - if IO failed
      JsonHubParseException - if parse failed
      JsoncReaderException - if parse failed
    • readFile

      static JsonHub readFile​(java.nio.file.Path path) throws java.io.IOException
      Returns parsed JsonHub instance from JSONC file.
      パラメータ:
      path - of JSONC file
      戻り値:
      parsed JsonHub.
      例外:
      java.io.IOException - if IO failed
      JsonHubParseException - if parse failed
      JsoncReaderException - if parse failed