|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fasterxml.aalto.impl.CommonConfig
public abstract class CommonConfig
Base class for reader and writer-side configuration/context objects
Field Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
protected |
CommonConfig(int flags,
int flagMods)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String IMPL_NAME
protected static final String IMPL_VERSION
protected int _flags
protected int _flagMods
Constructor Detail |
---|
protected CommonConfig(int flags, int flagMods)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |