public static AsyncOutputStream toAsyncOutputStream(final ByteBuffer dstByteBuffer) {
    """
	Converts a {@link ByteBuffer} into a {@link AsyncOutputStream}
	
	@param dstByteBuffer the data destination
	@return the AsyncOutputStream
    """
        notNull("dstByteBuffer", dstByteBuffer);
        return new AsyncOutputStream() {
            @Override
            public void write(final ByteBuffer srcByteBuffer, final SingleResultCallback<Integer> callback) {
                transferDataFromByteBuffers(srcByteBuffer, dstByteBuffer, callback);
            }

            @Override
            public void close(final SingleResultCallback<Void> callback) {
                callback.onResult(null, null);
            }
        };
    }
public static AsyncOutputStream toAsyncOutputStream(final ByteBuffer dstByteBuffer) {
        notNull("dstByteBuffer", dstByteBuffer);
        return new AsyncOutputStream() {
            @Override
            public void write(final ByteBuffer srcByteBuffer, final SingleResultCallback<Integer> callback) {
                transferDataFromByteBuffers(srcByteBuffer, dstByteBuffer, callback);
            }

            @Override
            public void close(final SingleResultCallback<Void> callback) {
                callback.onResult(null, null);
            }
        };
    }
public static AsyncOutputStream toAsyncOutputStream ( final ByteBuffer dstByteBuffer ) { notNull ( "dstByteBuffer" , dstByteBuffer ) ; return new AsyncOutputStream ( ) { @ Override public void write ( final ByteBuffer srcByteBuffer , final SingleResultCallback < Integer > callback ) { transferDataFromByteBuffers ( srcByteBuffer , dstByteBuffer , callback ) ; } @ Override public void close ( final SingleResultCallback < Void > callback ) { callback . onResult ( null , null ) ; } } ; }
Converts a {@link ByteBuffer} into a {@link AsyncOutputStream}

@param dstByteBuffer the data destination
@return the AsyncOutputStream
Converts a { @link ByteBuffer } into a { @link AsyncOutputStream }