Modifier and Type | Class and Description |
---|---|
static class |
JSONValidator.Type |
Constructor and Description |
---|
JSONValidator() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static JSONValidator |
from(Reader r) |
static JSONValidator |
from(String jsonStr) |
static JSONValidator |
fromUtf8(byte[] jsonBytes) |
static JSONValidator |
fromUtf8(InputStream is) |
JSONValidator.Type |
getType() |
boolean |
isSupportMultiValue() |
JSONValidator |
setSupportMultiValue(boolean supportMultiValue) |
boolean |
validate() |
public static JSONValidator fromUtf8(byte[] jsonBytes)
public static JSONValidator fromUtf8(InputStream is)
public static JSONValidator from(String jsonStr)
public static JSONValidator from(Reader r)
public boolean isSupportMultiValue()
public JSONValidator setSupportMultiValue(boolean supportMultiValue)
public JSONValidator.Type getType()
public boolean validate()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2012–2022 Alibaba Group. All rights reserved.