程序包 org.jsfr.json
类 SurfingConfiguration.Builder
- java.lang.Object
-
- org.jsfr.json.SurfingConfiguration.Builder
-
- 封闭类:
- SurfingConfiguration
public static class SurfingConfiguration.Builder extends Object
-
-
构造器概要
构造器 构造器 说明 Builder()
-
方法概要
-
-
-
方法详细资料
-
build
public SurfingConfiguration build()
-
withCharset
public SurfingConfiguration.Builder withCharset(Charset charset)
Associated with a Charset- 参数:
charset- charset- 返回:
- builder
-
withSurfer
public SurfingConfiguration.Builder withSurfer(JsonSurfer jsonSurfer)
Associated with a JsonSurfer- 参数:
jsonSurfer- JsonSurfer- 返回:
- builder
-
buildAndSurf
public void buildAndSurf(String json)
Build the configuration and then surf with it and the associated JsonSurfer- 参数:
json- json
-
buildAndSurf
@Deprecated public void buildAndSurf(Reader jsonReader)
已过时。usebuildAndSurf(InputStream)insteadBuild the configuration and then surf with it and the associated JsonSurfer- 参数:
jsonReader- jsonReader
-
buildAndSurf
public void buildAndSurf(InputStream inputStream)
Build the configuration and then surf with it and the associated JsonSurfer- 参数:
inputStream- json
-
bind
public SurfingConfiguration.Builder bind(String path, JsonPathListener... jsonPathListeners)
-
bind
public SurfingConfiguration.Builder bind(JsonPath.Builder builder, JsonPathListener... jsonPathListeners)
-
bind
public <T> SurfingConfiguration.Builder bind(String jsonPath, Class<T> tClass, TypedJsonPathListener<T>... typedListeners)
-
bind
public <T> SurfingConfiguration.Builder bind(JsonPath jsonPath, Class<T> tClass, TypedJsonPathListener<T>... typedListeners)
-
bind
public SurfingConfiguration.Builder bind(JsonPath jsonPath, JsonPathListener... jsonPathListeners)
-
skipOverlappedPath
public SurfingConfiguration.Builder skipOverlappedPath()
-
withJsonProvider
public SurfingConfiguration.Builder withJsonProvider(JsonProvider provider)
-
withErrorStrategy
public SurfingConfiguration.Builder withErrorStrategy(ErrorHandlingStrategy errorHandlingStrategy)
-
-