Package com.alibaba.fastjson
Class JSONValidator
- java.lang.Object
-
- com.alibaba.fastjson.JSONValidator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJSONValidator.Type
-
Constructor Summary
Constructors Constructor Description JSONValidator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()static JSONValidatorfrom(Reader r)static JSONValidatorfrom(String jsonStr)static JSONValidatorfromUtf8(byte[] jsonBytes)static JSONValidatorfromUtf8(InputStream is)JSONValidator.TypegetType()booleanisSupportMultiValue()JSONValidatorsetSupportMultiValue(boolean supportMultiValue)booleanvalidate()
-
-
-
Method Detail
-
fromUtf8
public static JSONValidator fromUtf8(byte[] jsonBytes)
-
fromUtf8
public static JSONValidator fromUtf8(InputStream is)
-
from
public static JSONValidator from(String jsonStr)
-
from
public static JSONValidator from(Reader r)
-
isSupportMultiValue
public boolean isSupportMultiValue()
-
setSupportMultiValue
public JSONValidator setSupportMultiValue(boolean supportMultiValue)
-
getType
public JSONValidator.Type getType()
-
validate
public boolean validate()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-