亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? countingquiettextwriter.cs

?? 詳細(xì)講述了數(shù)據(jù)庫編程
?? CS
字號(hào):
#region Copyright & License
//
// Copyright 2001-2005 The Apache Software Foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
#endregion

using System;
using System.IO;

using log4net.Core;

namespace log4net.Util
{
	/// <summary>
	/// Subclass of <see cref="QuietTextWriter"/> that maintains a count of 
	/// the number of bytes written.
	/// </summary>
	/// <remarks>
	/// <para>
	/// This writer counts the number of bytes written.
	/// </para>
	/// </remarks>
	/// <author>Nicko Cadell</author>
	/// <author>Gert Driesen</author>
	public class CountingQuietTextWriter : QuietTextWriter 
	{
		#region Public Instance Constructors

		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="writer">The <see cref="TextWriter" /> to actually write to.</param>
		/// <param name="errorHandler">The <see cref="IErrorHandler" /> to report errors to.</param>
		/// <remarks>
		/// <para>
		/// Creates a new instance of the <see cref="CountingQuietTextWriter" /> class 
		/// with the specified <see cref="TextWriter" /> and <see cref="IErrorHandler" />.
		/// </para>
		/// </remarks>
		public CountingQuietTextWriter(TextWriter writer, IErrorHandler errorHandler) : base(writer, errorHandler)
		{
			m_countBytes = 0;
		}

		#endregion Public Instance Constructors

		#region Override implementation of QuietTextWriter
  
		/// <summary>
		/// Writes a character to the underlying writer and counts the number of bytes written.
		/// </summary>
		/// <param name="value">the char to write</param>
		/// <remarks>
		/// <para>
		/// Overrides implementation of <see cref="QuietTextWriter"/>. Counts
		/// the number of bytes written.
		/// </para>
		/// </remarks>
		public override void Write(char value) 
		{
			try 
			{
				base.Write(value);

				// get the number of bytes needed to represent the 
				// char using the supplied encoding.
				m_countBytes += this.Encoding.GetByteCount(new char[] { value });
			} 
			catch(Exception e) 
			{
				this.ErrorHandler.Error("Failed to write [" + value + "].", e, ErrorCode.WriteFailure);
			}
		}
    
		/// <summary>
		/// Writes a buffer to the underlying writer and counts the number of bytes written.
		/// </summary>
		/// <param name="buffer">the buffer to write</param>
		/// <param name="index">the start index to write from</param>
		/// <param name="count">the number of characters to write</param>
		/// <remarks>
		/// <para>
		/// Overrides implementation of <see cref="QuietTextWriter"/>. Counts
		/// the number of bytes written.
		/// </para>
		/// </remarks>
		public override void Write(char[] buffer, int index, int count) 
		{
			if (count > 0)
			{
				try 
				{
					base.Write(buffer, index, count);

					// get the number of bytes needed to represent the 
					// char array using the supplied encoding.
					m_countBytes += this.Encoding.GetByteCount(buffer, index, count);
				} 
				catch(Exception e) 
				{
					this.ErrorHandler.Error("Failed to write buffer.", e, ErrorCode.WriteFailure);
				}
			}
		}

		/// <summary>
		/// Writes a string to the output and counts the number of bytes written.
		/// </summary>
		/// <param name="str">The string data to write to the output.</param>
		/// <remarks>
		/// <para>
		/// Overrides implementation of <see cref="QuietTextWriter"/>. Counts
		/// the number of bytes written.
		/// </para>
		/// </remarks>
		override public void Write(string str) 
		{
			if (str != null && str.Length > 0)
			{
				try 
				{
					base.Write(str);

					// get the number of bytes needed to represent the 
					// string using the supplied encoding.
					m_countBytes += this.Encoding.GetByteCount(str);
				}
				catch(Exception e) 
				{
					this.ErrorHandler.Error("Failed to write [" + str + "].", e, ErrorCode.WriteFailure);
				}
			}
		}
		
		#endregion Override implementation of QuietTextWriter

		#region Public Instance Properties

		/// <summary>
		/// Gets or sets the total number of bytes written.
		/// </summary>
		/// <value>
		/// The total number of bytes written.
		/// </value>
		/// <remarks>
		/// <para>
		/// Gets or sets the total number of bytes written.
		/// </para>
		/// </remarks>
		public long Count 
		{
			get { return m_countBytes; }
			set { m_countBytes = value; }
		}

		#endregion Public Instance Properties
  
		#region Private Instance Fields

		/// <summary>
		/// Total number of bytes written.
		/// </summary>
		private long m_countBytes;

		#endregion Private Instance Fields
	}
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线看日韩精品电影| 97超碰欧美中文字幕| 成人小视频在线| 久久精品国产精品亚洲综合| 久久精品国产澳门| 国产盗摄精品一区二区三区在线| 精品在线免费视频| 成人国产亚洲欧美成人综合网| 不卡高清视频专区| 欧美日本乱大交xxxxx| 亚洲精品在线网站| 自拍偷拍国产精品| 日韩电影免费在线观看网站| 捆绑调教美女网站视频一区| av电影在线观看不卡| 91麻豆国产精品久久| 久久综合色一综合色88| 亚洲免费大片在线观看| 韩国女主播一区| 欧美日韩一级二级| 亚洲色图另类专区| 国产精品一区久久久久| 4438x成人网最大色成网站| 国产精品视频一二三| 久久99久久久欧美国产| 日韩午夜精品电影| 亚洲成在人线在线播放| 91高清视频在线| 亚洲成人自拍网| 在线成人免费观看| 日本在线不卡视频| wwwwww.欧美系列| 国产一区二区在线电影| 国产精品不卡视频| 国产精品1区二区.| 国产精品久久久久久久浪潮网站| 国产激情视频一区二区三区欧美| 精品国产一区久久| 国产精品一品视频| 国产精品理论在线观看| 99久久精品国产精品久久| 国产精品麻豆一区二区 | 奇米综合一区二区三区精品视频| 欧美性受极品xxxx喷水| 奇米综合一区二区三区精品视频 | 美腿丝袜亚洲色图| 久久久久九九视频| 一本到三区不卡视频| 亚洲电影在线播放| 久久久久久久久久美女| 成人三级伦理片| 青草av.久久免费一区| 成人欧美一区二区三区视频网页| 7777精品久久久大香线蕉| 国产精品一区二区三区乱码| 亚洲精品乱码久久久久久日本蜜臀| 67194成人在线观看| 91在线观看美女| 亚洲成人午夜影院| 亚洲色图欧美偷拍| 久久久另类综合| 日韩视频在线你懂得| 欧美视频在线观看一区二区| 国产iv一区二区三区| 久久99精品久久久久久| 午夜精品久久久久影视| 亚洲精品高清视频在线观看| 欧美mv日韩mv| 日韩网站在线看片你懂的| 欧美日韩国产小视频在线观看| 91视频一区二区| 色香蕉久久蜜桃| 91麻豆视频网站| 成人免费视频视频| av亚洲精华国产精华| 成人avav在线| 色综合久久天天综合网| 91色九色蝌蚪| 欧美剧情电影在线观看完整版免费励志电影 | 日日摸夜夜添夜夜添精品视频 | 欧美久久久久久久久中文字幕| av在线不卡免费看| 91麻豆精东视频| 91精品婷婷国产综合久久性色 | 丝袜美腿亚洲色图| 美国三级日本三级久久99| 麻豆国产欧美一区二区三区| 国产很黄免费观看久久| 国产盗摄视频一区二区三区| 成人午夜激情片| 欧美三级韩国三级日本一级| 欧美一级片免费看| 国产日韩精品一区二区三区| 亚洲女子a中天字幕| 日韩电影在线免费观看| 大尺度一区二区| 538在线一区二区精品国产| 久久嫩草精品久久久精品| 18欧美乱大交hd1984| 偷拍日韩校园综合在线| 国产精品88888| 欧美一区二区精品在线| 中文在线资源观看网站视频免费不卡| 一区二区在线观看免费| 国产揄拍国内精品对白| 91亚洲大成网污www| 精品第一国产综合精品aⅴ| 中文字幕一区二区三区精华液| 中文字幕在线观看一区| 国产福利一区二区三区视频| 99久久久精品| 精品国产成人在线影院| 中文字幕在线视频一区| 日本伊人精品一区二区三区观看方式 | 国产精品久99| 麻豆专区一区二区三区四区五区| 国产成人自拍网| 欧美日韩一二区| 国产精品久久久爽爽爽麻豆色哟哟| 国产欧美一区二区精品性色超碰| 午夜天堂影视香蕉久久| 国产成人精品一区二区三区四区 | 99免费精品在线观看| 3atv一区二区三区| 亚洲一区二区免费视频| 一本色道久久综合狠狠躁的推荐| 欧美精品一区二区三区在线播放 | 久久综合五月天婷婷伊人| 肉肉av福利一精品导航| 欧美无人高清视频在线观看| 久久久久久亚洲综合影院红桃| 亚洲国产sm捆绑调教视频| 风间由美一区二区av101| 一本大道久久a久久综合| 亚洲人成影院在线观看| 色悠久久久久综合欧美99| 国产精品全国免费观看高清| 99久久精品久久久久久清纯| 26uuu成人网一区二区三区| 精品一区二区综合| 久久久国产午夜精品| jvid福利写真一区二区三区| 久久综合久久久久88| 成人性生交大片| 国产精品午夜久久| 91国产成人在线| 亚洲精品免费看| 亚洲精品在线观看网站| 91小视频免费观看| 青青青伊人色综合久久| 中文字幕一区三区| 欧美午夜宅男影院| 国内精品不卡在线| 一区二区三区日韩| 欧美videos中文字幕| 日本丶国产丶欧美色综合| 老司机精品视频线观看86| 亚洲日本在线看| 欧美日韩久久久一区| 99精品欧美一区| 国产剧情在线观看一区二区| 午夜成人免费电影| 国产精品免费久久久久| 日韩三级在线观看| 成人做爰69片免费看网站| 久久99热99| 黑人巨大精品欧美黑白配亚洲| 夜夜嗨av一区二区三区四季av| 91精品国产福利在线观看| 色综合天天综合网天天狠天天| 国产一区二区三区综合| 亚洲va欧美va国产va天堂影院| 国产精品女上位| 欧美性生活一区| 日本国产一区二区| 欧美主播一区二区三区| 色婷婷狠狠综合| 91福利区一区二区三区| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 日韩精品色哟哟| 天堂精品中文字幕在线| 免费观看日韩av| 国产精品一区一区| 99精品视频在线播放观看| 91丨porny丨首页| 欧美精品一卡两卡| 91亚洲精品久久久蜜桃网站| 色综合久久久久综合体| 欧美二区三区91| 久久久精品国产免大香伊| 亚洲女爱视频在线| 亚洲一区在线观看网站| 久久99深爱久久99精品| www.av精品| 精品区一区二区| 亚洲三级在线免费| 青青青伊人色综合久久| av欧美精品.com| 日韩美女视频在线| 欧美电影免费提供在线观看|