/*
@file Include/Classes/System/IO/StringWriter.ab
@brief StringWriterの実装。
*/

Namespace System
Namespace IO

/*
@brief StringBuilderへの書き込みを行うTextWriterの派生。
@date 2008/11/02
@auther Egtra
*/
Class StringWriter
	Inherits TextWriter
Public
	/*
	@date 2008/11/02
	@auther Egtra
	*/
	Sub StringWriter()
	End Sub

	/*
	@date 2008/11/02
	@auther Egtra
	@param[in] buffer StringWriterが書き込む先となるStringBuilder
	*/
	Sub StringWriter(buffer As Text.StringBuilder)
		TextWriter(buffer)
	End Sub

	/*
	@brief 書き込み先のStringBuilderを得る。
	@date 2008/11/02
	@auther Egtra
	@return 書き込み先のStringBuilder
	*/
	Function GetStringBuilder() As Text.StringBuilder
		GetStringBuilder = Buffer()
	End Function
End Class

End Namespace
End Namespace
