Class XMLReaderAdapter
public class XMLReaderAdapter : JVMBridgeListener, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
XMLReaderAdapter
- Implements
- Derived
- Inherited Members
-
JVMBridgeListener.ListenerShallManageEventIndexJVMBridgeListener.ListenerShallManageEventNameJVMBridgeListener.ListenerShallManageEventIndexWithDataJVMBridgeListener.ListenerShallManageEventNameWithDataJVMBridgeBase<JVMBridgeListener>.IsAssignableFrom(IJavaType)JVMBridgeBase<JVMBridgeListener>.IsAssignableFrom<T>()JVMBridgeBase<JVMBridgeListener>.Execute<T>(params T[])JVMBridgeBase<JVMBridgeListener>.DynBridgeClazzJVMBridgeBase<JVMBridgeListener>.BridgeClazzJVMBridgeBase.ReferenceEqualsJVM(IJVMBridgeBase, IJVMBridgeBase)JVMBridgeBase.RuntimeClassNameOf<T>()JVMBridgeBase.ClassNameOf<T>()JVMBridgeBase.ClassOf<T>()JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)JVMBridgeBase.MonitorEnter()JVMBridgeBase.MonitorExit()JVMBridgeBase.IsInstanceOf(IJavaType)JVMBridgeBase.IsInstanceOf<T>()JVMBridgeBase.RuntimeIsInstanceOf<T>()JVMBridgeBase.CastTo<TNewClass>()JVMBridgeBase.CastToAndDetach<TNewClass>()JVMBridgeBase.CastDirect<TNewClass>()JVMBridgeBase.CastDirectAndDetach<TNewClass>()JVMBridgeBase.CheckDisposed()JVMBridgeBase.ToString()JVMBridgeBase.Equals(IJVMBridgeBase)JVMBridgeBase.GetHashCode()JVMBridgeBase.Notify()JVMBridgeBase.NotifyAll()JVMBridgeBase.Wait()JVMBridgeBase.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.IsBridgeInterfaceJVMBridgeBase.IsBridgeAbstract
- Extension Methods
Constructors
XMLReaderAdapter()
public XMLReaderAdapter()
Exceptions
XMLReaderAdapter(IJVMBridgeBaseInitializer)
Initializer used internally by JCOBridge. Do not use directly.
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public XMLReaderAdapter(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
XMLReaderAdapter(XMLReader)
public XMLReaderAdapter(XMLReader arg0)
Parameters
XMLReaderAdapter(params object[])
Generic constructor used by JCOBridge when a derived class needs to forward arguments to the base JVMBridgeBase class.
public XMLReaderAdapter(params object[] args)
Parameters
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
OnCharacters
public Action<char[], int, int> OnCharacters { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnEndDocument
Handler for https://docs.oracle.com/javase/8/docs/api/org/xml/sax/helpers/XMLReaderAdapter.html#endDocument--
public Action OnEndDocument { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnEndElement
public Action<String, String, String> OnEndElement { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnEndPrefixMapping
public Action<String> OnEndPrefixMapping { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnIgnorableWhitespace
public Action<char[], int, int> OnIgnorableWhitespace { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnParse
Handler for https://docs.oracle.com/javase/8/docs/api/org/xml/sax/helpers/XMLReaderAdapter.html#parse-java.lang.String-
public Action<String> OnParse { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnParse1
public Action<InputSource> OnParse1 { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnProcessingInstruction
public Action<String, String> OnProcessingInstruction { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetDTDHandler
public Action<DTDHandler> OnSetDTDHandler { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetDocumentHandler
public Action<DocumentHandler> OnSetDocumentHandler { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetDocumentLocator
public Action<Locator> OnSetDocumentLocator { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetEntityResolver
public Action<EntityResolver> OnSetEntityResolver { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetErrorHandler
public Action<ErrorHandler> OnSetErrorHandler { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSetLocale
public Action<Locale> OnSetLocale { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnSkippedEntity
public Action<String> OnSkippedEntity { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnStartDocument
Handler for https://docs.oracle.com/javase/8/docs/api/org/xml/sax/helpers/XMLReaderAdapter.html#startDocument--
public Action OnStartDocument { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnStartElement
public Action<String, String, String, Attributes> OnStartElement { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
OnStartPrefixMapping
public Action<String, String> OnStartPrefixMapping { get; set; }
Property Value
Remarks
Assign a delegate to handle the event without subclassing. If both this handler and a virtual method override are present, the delegate takes precedence. Set to null to delegate to the virtual method.
Methods
Characters(char[], int, int)
public virtual void Characters(char[] arg0, int arg1, int arg2)
Parameters
Exceptions
EndDocument()
public virtual void EndDocument()
Exceptions
EndElement(String, String, String)
public virtual void EndElement(String arg0, String arg1, String arg2)
Parameters
Exceptions
EndPrefixMapping(String)
public virtual void EndPrefixMapping(String arg0)
Parameters
IgnorableWhitespace(char[], int, int)
public virtual void IgnorableWhitespace(char[] arg0, int arg1, int arg2)
Parameters
Exceptions
InitializeHandlers(Type)
Handlers initializer for XMLReaderAdapter
protected virtual void InitializeHandlers(Type listenerRuntimeType)
Parameters
listenerRuntimeTypeType
ListenerShallManageEvent(int)
Invoked from the JVMBridgeListener on each received event to notify the user which can decide to abort the execution for the specific event returning false
protected override bool ListenerShallManageEvent(int eventIndex)
Parameters
eventIndexintThe index of the event triggered as returned from AddEventHandler(string, EventHandler) or AddEventHandler<TDataClass>(string, EventHandler<CLRListenerEventArgs<TDataClass>>)
Returns
Remarks
By default every event continues the execution and reads the data from JVM; this implies an extra cost which can be limited using ListenerShallManageEvent(int) or the MASES.JCOBridge.C2JBridge.JVMBridgeListener.ListenerShallManageEventIndex/MASES.JCOBridge.C2JBridge.JVMBridgeListener.ListenerShallManageEventName handlers. Returning false the control is immediately returned to the JVM, anyway the user has received the notification. It can be useful in scenarios where the user is interested in few events and the other are simply discarded to optimize the execution speed. By default, this function invokes MASES.JCOBridge.C2JBridge.JVMBridgeListener.ListenerShallManageEventIndex, then try MASES.JCOBridge.C2JBridge.JVMBridgeListener.ListenerShallManageEventName if they are set or return true
ListenerShallManageEventHandlers(int)
protected virtual bool ListenerShallManageEventHandlers(int eventIndex)
Parameters
eventIndexint
Returns
Parse(String)
public virtual void Parse(String arg0)
Parameters
Exceptions
Parse(InputSource)
public virtual void Parse(InputSource arg0)
Parameters
arg0InputSource
Exceptions
ProcessingInstruction(String, String)
public virtual void ProcessingInstruction(String arg0, String arg1)
Parameters
Exceptions
SetDTDHandler(DTDHandler)
public virtual void SetDTDHandler(DTDHandler arg0)
Parameters
arg0DTDHandler
SetDocumentHandler(DocumentHandler)
public virtual void SetDocumentHandler(DocumentHandler arg0)
Parameters
SetDocumentLocator(Locator)
public virtual void SetDocumentLocator(Locator arg0)
Parameters
SetEntityResolver(EntityResolver)
public virtual void SetEntityResolver(EntityResolver arg0)
Parameters
SetErrorHandler(ErrorHandler)
public virtual void SetErrorHandler(ErrorHandler arg0)
Parameters
arg0ErrorHandler
SetLocale(Locale)
public virtual void SetLocale(Locale arg0)
Parameters
Exceptions
SkippedEntity(String)
public virtual void SkippedEntity(String arg0)
Parameters
Exceptions
StartDocument()
public virtual void StartDocument()
Exceptions
StartElement(String, String, String, Attributes)
public virtual void StartElement(String arg0, String arg1, String arg2, Attributes arg3)
Parameters
arg0Stringarg1Stringarg2Stringarg3Attributes
Exceptions
StartPrefixMapping(String, String)
public virtual void StartPrefixMapping(String arg0, String arg1)