Package org.cakelab.json.parser
Class JSONParserFactory
- java.lang.Object
-
- org.cakelab.json.parser.JSONParserFactory
-
- Direct Known Subclasses:
DefaultParserFactory
public abstract class JSONParserFactory extends java.lang.Object
Creates JSONParser instances.Multi-Threading
Implementations are supposed to be thread-safe.- Author:
- homac
-
-
Constructor Summary
Constructors Constructor Description JSONParserFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description JSONParser
create()
Create a parser usingJSONDefaults#CODEC_IGNORE_NULL
.abstract JSONParser
create(boolean ignoreNull)
Create a parser.
-
-
-
Method Detail
-
create
public abstract JSONParser create(boolean ignoreNull)
Create a parser.- Parameters:
ignoreNull
- Whether to ignore attributes, which have a null value and not add them to the object representation.- Returns:
- new parser instance.
-
create
public JSONParser create()
Create a parser usingJSONDefaults#CODEC_IGNORE_NULL
.
-
-