public abstract class CommonConfig extends Object
Modifier and Type | Field and Description |
---|---|
protected int |
_flagMods
Bitset that indicates all explicit changes to on/off values; clear
bits indicate settings that are unmodified default values.
|
protected int |
_flags
Bitset for all on/off values for this configuration object.
|
protected static String |
IMPL_NAME |
protected static String |
IMPL_VERSION
This is "major.minor" version used for purposes of determining
the feature set.
|
Modifier | Constructor and Description |
---|---|
protected |
CommonConfig(int flags,
int flagMods) |
Modifier and Type | Method and Description |
---|---|
abstract String |
getActualEncoding() |
abstract String |
getExternalEncoding()
This method returns name of encoding that has been passed
explicitly to the reader or writer, from outside.
|
Object |
getProperty(String propName,
boolean isMandatory) |
protected boolean |
hasExplicitFlag(int flagMask) |
protected boolean |
hasFlag(int flagMask) |
protected boolean |
hasFlagBeenModified(int flagMask)
Method for checking whether specific configuration flag
has been explicitly modified (set, clear; regardless of
whether state actually changed), or is it the default
value.
|
boolean |
isPropertySupported(String propName) |
abstract boolean |
isXml11() |
protected void |
setFlag(int flagMask,
boolean state) |
boolean |
setProperty(String propName,
Object value) |
protected static final String IMPL_NAME
protected static final String IMPL_VERSION
protected int _flags
protected int _flagMods
public Object getProperty(String propName, boolean isMandatory)
isMandatory
- If true, unrecognized property should
result in IllegalArgumentException
public boolean isPropertySupported(String propName)
public boolean setProperty(String propName, Object value)
public abstract String getExternalEncoding()
public abstract String getActualEncoding()
public abstract boolean isXml11()
protected final boolean hasFlag(int flagMask)
protected final boolean hasExplicitFlag(int flagMask)
protected final void setFlag(int flagMask, boolean state)
protected final boolean hasFlagBeenModified(int flagMask)
Copyright © 2018 FasterXML. All rights reserved.