Package com.github.tnakamot.json.parser
Class JSONParserErrorHandlingOptions.Builder
- java.lang.Object
-
- com.github.tnakamot.json.parser.JSONParserErrorHandlingOptions.Builder
-
- Enclosing class:
- JSONParserErrorHandlingOptions
public static class JSONParserErrorHandlingOptions.Builder extends Object
Builder class ofJSONParserErrorHandlingOptions
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JSONParserErrorHandlingOptions
build()
Build a new instance ofJSONParserErrorHandlingOptions
.JSONParserErrorHandlingOptions.Builder
failOnDuplicateKey(boolean b)
JSONParserErrorHandlingOptions.Builder
failOnTooBigNumber(boolean b)
JSONParserErrorHandlingOptions.Builder
showErrorLine(boolean b)
SetJSONParserErrorHandlingOptions.showErrorLine()
option.JSONParserErrorHandlingOptions.Builder
showLineAndColumnNumber(boolean b)
JSONParserErrorHandlingOptions.Builder
showURI(boolean b)
SetJSONParserErrorHandlingOptions.showURI()
option.JSONParserErrorHandlingOptions.Builder
warningStream(@Nullable PrintStream stream)
SetJSONParserErrorHandlingOptions.warningStream()
option.
-
-
-
Method Detail
-
showURI
public JSONParserErrorHandlingOptions.Builder showURI(boolean b)
SetJSONParserErrorHandlingOptions.showURI()
option.- Parameters:
b
- option value- Returns:
- this builder
-
showLineAndColumnNumber
public JSONParserErrorHandlingOptions.Builder showLineAndColumnNumber(boolean b)
- Parameters:
b
- option value- Returns:
- this builder
-
showErrorLine
public JSONParserErrorHandlingOptions.Builder showErrorLine(boolean b)
SetJSONParserErrorHandlingOptions.showErrorLine()
option.- Parameters:
b
- option value- Returns:
- this builder
-
failOnDuplicateKey
public JSONParserErrorHandlingOptions.Builder failOnDuplicateKey(boolean b)
- Parameters:
b
- option value- Returns:
- this builder
-
failOnTooBigNumber
public JSONParserErrorHandlingOptions.Builder failOnTooBigNumber(boolean b)
- Parameters:
b
- option value- Returns:
- this builder
-
warningStream
public JSONParserErrorHandlingOptions.Builder warningStream(@Nullable @Nullable PrintStream stream)
SetJSONParserErrorHandlingOptions.warningStream()
option.- Parameters:
stream
- option value- Returns:
- this builder
-
build
public JSONParserErrorHandlingOptions build()
Build a new instance ofJSONParserErrorHandlingOptions
.- Returns:
- a new instance of
JSONParserErrorHandlingOptions
-
-