axel/src/main/java/fr/xgouchet/xmleditor/core/editor/XmlEditor.java
public void saveDocument(final @NonNull ByteArrayOutputStream output) {
        SaveXmlAction saveAction = new SaveXmlAction();

        SaveXmlAction.Input input = new SaveXmlAction.Input(mDocument, output);

        // TODO block all operations while this is performing
        AsyncActionListener<Void> listener = new AsyncActionListener<Void>() {
            @Override
            public void onActionPerformed(@Nullable Void output) {
                // TODO notify listener that the doc has been saved
            }

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

        mActionQueueExecutor.queueAction(saveAction, input, listener);
    }
/**
     * Asynchronously saves this document to the given output stream, as a standard, pretty printed
     * XML document.
     * <p/>
     * As long as this operation is running, the document is set to read only.
     *
     * @param output the output stream to write into
     */
Asynchronously saves this document to the given output stream, as a standard, pretty printed
XML document.

As long as this operation is running, the document is set to read only.

@param output the output stream to write into
Asynchronously saves this document to the given output stream as a standard pretty printed XML document . As long as this operation is running the document is set to read only . @param output the output stream to write into
public void saveDocument(final @NonNull ByteArrayOutputStream output) {
        SaveXmlAction saveAction = new SaveXmlAction();
        SaveXmlAction.Input input = new SaveXmlAction.Input(mDocument, output);
        AsyncActionListener<Void> listener = new AsyncActionListener<Void>() {
            @Override
            public void onActionPerformed(@Nullable Void output) {
            }
            @Override
            public void onActionFailed(Exception e) {
            }
        };
        mActionQueueExecutor.queueAction(saveAction, input, listener);
    }
public void saveDocument ( final @ NonNull ByteArrayOutputStream output ) { SaveXmlAction saveAction = new SaveXmlAction ( ) ; SaveXmlAction . Input input = new SaveXmlAction . Input ( mDocument , output ) ; AsyncActionListener < Void > listener = new AsyncActionListener < Void > ( ) { @ Override public void onActionPerformed ( @ Nullable Void output ) { } @ Override public void onActionFailed ( Exception e ) { } } ; mActionQueueExecutor . queueAction ( saveAction , input , listener ) ; }
Asynchronously saves this document to the given output stream, as a standard, pretty printed
 XML document.
Asynchronously saves this document to the given output stream as a standard pretty printed XML document .
// TODO block all operations while this is performing // TODO notify listener that the doc has been saved // TODO notify listener that an error occurred