パッケージ 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
Returns parsed JsonHub instance from JSONC String.- パラメータ:
line
- of JSONC String.- 戻り値:
- parsed JsonHub.
- 例外:
JsonHubParseException
- if parse failedJsoncReaderException
- if parse failed
-
readLines
Returns parsed JsonHub instance from JSONC lines.- パラメータ:
lines
- of JSONC String- 戻り値:
- parsed JsonHub.
- 例外:
JsonHubParseException
- if parse failedJsoncReaderException
- if parse failed
-
readReader
Returns parsed JsonHub instance from JSONC reader.- パラメータ:
reader
- of JSONC- 戻り値:
- parsed JsonHub.
- 例外:
java.io.IOException
- if IO failedJsonHubParseException
- if parse failedJsoncReaderException
- if parse failed
-
readFile
Returns parsed JsonHub instance from JSONC file.- パラメータ:
path
- of JSONC file- 戻り値:
- parsed JsonHub.
- 例外:
java.io.IOException
- if IO failedJsonHubParseException
- if parse failedJsoncReaderException
- if parse failed
-