/**
 * @namespace com.thesis.util.StringBuffer
 * @author 钟军锐 August.R@263.net
 */

/** @id StringBuffer */
function StringBuffer(){
	this.__Strings__=new Array();
	if(typeof StringBuffer._initialized=="undefined"){
		StringBuffer._initialized=true;
		/** @id StringBuffer.append */
		StringBuffer.prototype.append=function(str){
			this.__Strings__.push(str);
		};
		/** @id StringBuffer.toString */
		StringBuffer.prototype.toString=function(){
			return this.__Strings__.join("");
		};
		/** @id StringBuffer.rollBack */
		StringBuffer.prototype.rollBack=function(){
			return this.__Strings__.pop();
		};
	}
}
