Skip to content

Commit

Permalink
Add missing accessors to TokenStreamFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 21, 2023
1 parent 19619fb commit 7adb383
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/fasterxml/jackson/core/JsonFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ public JsonFactory disable(JsonFactory.Feature f) {
*
* @return True if the specified feature is enabled
*/
@Override
public final boolean isEnabled(JsonFactory.Feature f) {
return (_factoryFeatures & f.getMask()) != 0;
}
Expand Down Expand Up @@ -955,6 +956,7 @@ public final boolean isEnabled(JsonParser.Feature f) {
*
* @since 2.10
*/
@Override
public final boolean isEnabled(StreamReadFeature f) {
return (_parserFeatures & f.mappedFeature().getMask()) != 0;
}
Expand Down Expand Up @@ -1050,6 +1052,7 @@ public final boolean isEnabled(JsonGenerator.Feature f) {
*
* @since 2.10
*/
@Override
public final boolean isEnabled(StreamWriteFeature f) {
return (_generatorFeatures & f.mappedFeature().getMask()) != 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ public abstract class TokenStreamFactory
/**********************************************************************
*/

public abstract boolean isEnabled(JsonFactory.Feature f);

public abstract boolean isEnabled(StreamReadFeature f);
public abstract boolean isEnabled(StreamWriteFeature f);

public abstract boolean isEnabled(JsonParser.Feature f);
public abstract boolean isEnabled(JsonGenerator.Feature f);

Expand Down

0 comments on commit 7adb383

Please sign in to comment.