Implemented URL query parsing for initial token /opa/?token=abcde
[src/app-framework-demo.git] / afb-client / bower_components / jszip / lib / stringWriter.js
1 'use strict';
2
3 var utils = require('./utils');
4
5 /**
6  * An object to write any content to a string.
7  * @constructor
8  */
9 var StringWriter = function() {
10     this.data = [];
11 };
12 StringWriter.prototype = {
13     /**
14      * Append any content to the current string.
15      * @param {Object} input the content to add.
16      */
17     append: function(input) {
18         input = utils.transformTo("string", input);
19         this.data.push(input);
20     },
21     /**
22      * Finalize the construction an return the result.
23      * @return {string} the generated string.
24      */
25     finalize: function() {
26         return this.data.join("");
27     }
28 };
29
30 module.exports = StringWriter;