-
-
Notifications
You must be signed in to change notification settings - Fork 765
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
JsonParserBase
base class (backport from 3.0) (#1224)
- Loading branch information
1 parent
abfd201
commit 3308b00
Showing
5 changed files
with
48 additions
and
29 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/main/java/com/fasterxml/jackson/core/json/JsonParserBase.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.fasterxml.jackson.core.json; | ||
|
||
import com.fasterxml.jackson.core.*; | ||
import com.fasterxml.jackson.core.base.ParserBase; | ||
import com.fasterxml.jackson.core.io.IOContext; | ||
import com.fasterxml.jackson.core.util.JacksonFeatureSet; | ||
|
||
/** | ||
* Another intermediate base class, only used by actual JSON-backed parser | ||
* implementations. | ||
* | ||
* @since 2.17 | ||
*/ | ||
public abstract class JsonParserBase | ||
extends ParserBase | ||
{ | ||
/* | ||
/********************************************************************** | ||
/* Life-cycle | ||
/********************************************************************** | ||
*/ | ||
|
||
protected JsonParserBase(IOContext ioCtxt, int features) { | ||
super(ioCtxt, features); | ||
} | ||
|
||
/* | ||
/********************************************************************** | ||
/* Capability introspection | ||
/********************************************************************** | ||
*/ | ||
|
||
@Override | ||
public final JacksonFeatureSet<StreamReadCapability> getReadCapabilities() { | ||
return JSON_READ_CAPABILITIES; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters