@@ -85,7 +85,7 @@ public SurfingConfiguration.Builder configBuilder() {
85
85
*/
86
86
public Iterator <Object > iterator (Reader reader , JsonPath jsonPath ) {
87
87
SurfingContext context = createIteratorContext (jsonPath );
88
- final ResumableParser resumableParser = jsonParserAdapter .createParser (reader , context );
88
+ final ResumableParser resumableParser = jsonParserAdapter .createResumableParser (reader , context );
89
89
resumableParser .parse ();
90
90
return createIterator (context , resumableParser );
91
91
}
@@ -99,7 +99,7 @@ public Iterator<Object> iterator(Reader reader, JsonPath jsonPath) {
99
99
*/
100
100
public Iterator <Object > iterator (String json , JsonPath jsonPath ) {
101
101
SurfingContext context = createIteratorContext (jsonPath );
102
- final ResumableParser resumableParser = jsonParserAdapter .createParser (json , context );
102
+ final ResumableParser resumableParser = jsonParserAdapter .createResumableParser (json , context );
103
103
resumableParser .parse ();
104
104
return createIterator (context , resumableParser );
105
105
}
@@ -167,17 +167,17 @@ public void surf(Reader json, SurfingConfiguration configuration) {
167
167
jsonParserAdapter .parse (json , new SurfingContext (configuration ));
168
168
}
169
169
170
- public ResumableParser getResumableParser (String json , SurfingConfiguration configuration ) {
170
+ public ResumableParser createResumableParser (String json , SurfingConfiguration configuration ) {
171
171
ensureSetting (configuration );
172
- return jsonParserAdapter .createParser (json , new SurfingContext (configuration ));
172
+ return jsonParserAdapter .createResumableParser (json , new SurfingContext (configuration ));
173
173
}
174
174
175
- public ResumableParser getResumableParser (Reader json , SurfingConfiguration configuration ) {
175
+ public ResumableParser createResumableParser (Reader json , SurfingConfiguration configuration ) {
176
176
ensureSetting (configuration );
177
- return jsonParserAdapter .createParser (json , new SurfingContext (configuration ));
177
+ return jsonParserAdapter .createResumableParser (json , new SurfingContext (configuration ));
178
178
}
179
179
180
- public NonBlockingParser getNonBlockingParser (SurfingConfiguration configuration ) {
180
+ public NonBlockingParser createNonBlockingParser (SurfingConfiguration configuration ) {
181
181
ensureSetting (configuration );
182
182
return jsonParserAdapter .createNonBlockingParser (new SurfingContext (configuration ));
183
183
}
0 commit comments