axel/src/main/java/fr/xgouchet/xmleditor/core/editor/XmlEditor.java
public void loadDocument(final @NonNull InputStreamProvider<?> inputProvider) {
        LoadXmlAction loaderAction = new LoadXmlAction();
        AsyncActionListener<XmlNode> listener = new AsyncActionListener<XmlNode>() {
            @Override
            public void onActionPerformed(@Nullable XmlNode output) {
                if (output == null) {
                    // TODO notify listener that an error occurred
                } else {
                    mDocument = output;
                    // TODO notify listener that the doc changed
                }
            }

            @Override
            public void onActionFailed(Exception e) {
                // TODO notify listener that an error occurred
            }
        };

        mActionQueueExecutor.queueAction(loaderAction, inputProvider, listener);
    }
/**
     * Asynchronously loads an XML document from the given input stream provider, and replaces the
     * current document
     *
     * @param inputProvider a provider to the input stream representing the document to load
     */
Asynchronously loads an XML document from the given input stream provider, and replaces the
current document

@param inputProvider a provider to the input stream representing the document to load
Asynchronously loads an XML document from the given input stream provider and replaces the current document @param inputProvider a provider to the input stream representing the document to load
public void loadDocument(final @NonNull InputStreamProvider<?> inputProvider) {
        LoadXmlAction loaderAction = new LoadXmlAction();
        AsyncActionListener<XmlNode> listener = new AsyncActionListener<XmlNode>() {
            @Override
            public void onActionPerformed(@Nullable XmlNode output) {
                if (output == null) {
                } else {
                    mDocument = output;
                }
            }
            @Override
            public void onActionFailed(Exception e) {
            }
        };
        mActionQueueExecutor.queueAction(loaderAction, inputProvider, listener);
    }
public void loadDocument ( final @ NonNull InputStreamProvider < ? > inputProvider ) { LoadXmlAction loaderAction = new LoadXmlAction ( ) ; AsyncActionListener < XmlNode > listener = new AsyncActionListener < XmlNode > ( ) { @ Override public void onActionPerformed ( @ Nullable XmlNode output ) { if ( output == null ) { } else { mDocument = output ; } } @ Override public void onActionFailed ( Exception e ) { } } ; mActionQueueExecutor . queueAction ( loaderAction , inputProvider , listener ) ; }
Asynchronously loads an XML document from the given input stream provider, and replaces the
 current document
Asynchronously loads an XML document from the given input stream provider and replaces the current document
// TODO notify listener that an error occurred // TODO notify listener that the doc changed // TODO notify listener that an error occurred