@NotThreadSafe public class SAXReaderSettings extends Object implements ISAXReaderSettings, ICloneable<SAXReaderSettings>
| Constructor and Description |
|---|
SAXReaderSettings()
Default constructor
|
SAXReaderSettings(ISAXReaderSettings aOther)
Copy constructor
|
public SAXReaderSettings()
public SAXReaderSettings(@Nonnull ISAXReaderSettings aOther)
aOther - the object to copy the settings from. May not be null.@Nullable public EntityResolver getEntityResolver()
getEntityResolver in interface IBaseXMLReaderSettingsnull.@Nonnull public final SAXReaderSettings setEntityResolver(@Nullable EntityResolver aEntityResolver)
@Nullable public DTDHandler getDTDHandler()
getDTDHandler in interface ISAXReaderSettingsnull.@Nonnull public final SAXReaderSettings setDTDHandler(@Nullable DTDHandler aDTDHandler)
@Nullable public ContentHandler getContentHandler()
getContentHandler in interface ISAXReaderSettingsnull.@Nonnull public final SAXReaderSettings setContentHandler(@Nullable ContentHandler aContentHandler)
@Nullable public ErrorHandler getErrorHandler()
getErrorHandler in interface IBaseXMLReaderSettingsnull if no
special error handler is needed.@Nonnull public final SAXReaderSettings setErrorHandler(@Nullable ErrorHandler aErrorHandler)
@Nullable public LexicalHandler getLexicalHandler()
getLexicalHandler in interface ISAXReaderSettingsnull.@Nonnull public final SAXReaderSettings setLexicalHandler(@Nullable LexicalHandler aLexicalHandler)
@Nullable public DeclHandler getDeclarationHandler()
getDeclarationHandler in interface ISAXReaderSettingsnull.@Nonnull public final SAXReaderSettings setDeclarationHandler(@Nullable DeclHandler aDeclHandler)
public boolean hasAnyProperties()
hasAnyProperties in interface IBaseXMLReaderSettingstrue if at least one parser property is defined@Nullable public Object getPropertyValue(@Nullable EXMLParserProperty eProperty)
IBaseXMLReaderSettingsgetPropertyValue in interface IBaseXMLReaderSettingseProperty - The property to use. May be null.null if no such property was found.@Nonnull @ReturnsMutableCopy public Map<EXMLParserProperty,Object> getAllPropertyValues()
getAllPropertyValues in interface IBaseXMLReaderSettingsnull.@Nonnull public final SAXReaderSettings setPropertyValue(@Nonnull EXMLParserProperty eProperty, @Nullable Object aPropertyValue)
@Nonnull public final SAXReaderSettings setPropertyValues(@Nullable Map<EXMLParserProperty,?> aProperties)
@Nonnull public final EChange removePropertyValue(@Nullable EXMLParserProperty eProperty)
@Nullable public Locale getLocale()
getLocale in interface IBaseXMLReaderSettingsnull and therefore the XML parser will use the system
default locale.public SAXReaderSettings setLocale(@Nullable Locale aLocale)
public boolean hasAnyFeature()
hasAnyFeature in interface IBaseXMLReaderSettingstrue if at least one parser feature is defined,
false if not@Nullable public Boolean getFeatureValue(@Nullable EXMLParserFeature eFeature)
IBaseXMLReaderSettingsgetFeatureValue in interface IBaseXMLReaderSettingseFeature - The feature to search. May be null.null if this feature is undefined.@Nonnull @ReturnsMutableCopy public Map<EXMLParserFeature,Boolean> getAllFeatureValues()
getAllFeatureValues in interface IBaseXMLReaderSettings@Nonnull public final SAXReaderSettings setFeatureValue(@Nonnull EXMLParserFeature eFeature, boolean bValue)
@Nonnull public final SAXReaderSettings setFeatureValue(@Nonnull EXMLParserFeature eFeature, @Nullable Boolean aValue)
@Nonnull public final SAXReaderSettings setFeatureValues(@Nullable Map<EXMLParserFeature,Boolean> aValues)
@Nonnull public final EChange removeFeature(@Nullable EXMLParserFeature eFeature)
public boolean requiresNewXMLParser()
ISAXReaderSettingsDocumentBuilderFactory or if a pooled default
object can be used.requiresNewXMLParser in interface IBaseXMLReaderSettingsrequiresNewXMLParser in interface ISAXReaderSettingstrue if a separate
DocumentBuilderFactory is required,
false if not.@Nonnull public IExceptionCallback<Throwable> getExceptionHandler()
getExceptionHandler in interface IBaseXMLReaderSettingsnull.@Nonnull public final SAXReaderSettings setExceptionHandler(@Nonnull IExceptionCallback<Throwable> aExceptionHandler)
public boolean isRequiresNewXMLParserExplicitly()
isRequiresNewXMLParserExplicitly in interface ISAXReaderSettingstrue if a new XML parser is explicitly required for
this instance.@Nonnull public final SAXReaderSettings setRequiresNewXMLParserExplicitly(boolean bRequiresNewXMLParserExplicitly)
@Nonnull public SAXReaderSettings getClone()
getClone in interface ICloneable<SAXReaderSettings>public void applyToSAXReader(@Nonnull XMLReader aParser)
ISAXReaderSettingsapplyToSAXReader in interface ISAXReaderSettingsaParser - The XML reader to apply the settings onto. May not be
null.@Nonnull public static SAXReaderSettings createCloneOnDemand(@Nullable ISAXReaderSettings aOther)
null a new empty SAXReaderSettings object
is created, otherwise a copy of the parameter is created.aOther - The parameter to be used. May be null.null.Copyright © 2014–2016 Philip Helger. All rights reserved.