Package com.alibaba.fastjson2
Class JSONValidator
- java.lang.Object
-
- com.alibaba.fastjson2.JSONValidator
-
public class JSONValidator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONValidator.Type
-
Constructor Summary
Constructors Modifier Constructor Description protectedJSONValidator(JSONReader jsonReader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JSONValidatorfrom(JSONReader jsonReader)static JSONValidatorfrom(String jsonStr)static JSONValidatorfromUtf8(byte[] jsonBytes)JSONValidator.TypegetType()booleanvalidate()
-
-
-
Constructor Detail
-
JSONValidator
protected JSONValidator(JSONReader jsonReader)
-
-
Method Detail
-
fromUtf8
public static JSONValidator fromUtf8(byte[] jsonBytes)
-
from
public static JSONValidator from(String jsonStr)
-
from
public static JSONValidator from(JSONReader jsonReader)
-
validate
public boolean validate()
-
getType
public JSONValidator.Type getType()
-
-