var geograffiti = geograffiti || {};
geograffiti.StringBuffer = Class.create({
    initialize: function(){
        this.buffer = new Array()
    },
    append: function(value){
        if (!String.isNullOrEmpty(value)) {
            if (arguments.length == 1) {
                this.buffer.push(value)
            }
            else {
                this.buffer.push(String.format.apply(this, arguments))
            }
        }
        return this
    },
    clear: function(){
        this.buffer.clear()
    },
    toString: function(){
        return this.buffer.join("")
    }
});

