private void AppendTabs() { for (var i = 0; i < Indent; i++) { CurrentLineBuffer.Append(TabString); } }
public void Write(string s) { if (s == null) { return; } CurrentLineBuffer.Append(s); }
public void Close() { if (!String.IsNullOrWhiteSpace(CurrentLineBuffer.ToString())) { FlushCurrentLineBuffer(); } InnerWriter.Close(); }
public void Write(string s) { if (s == null) { return; } const int maxLength = 8000; if (CurrentLineLenth + s.Length >= maxLength) { CurrentLineLenth = 0; Write(Environment.NewLine); } CurrentLineLenth += s.Length; CurrentLineBuffer.Append(s); }
public void WriteLine(string s) { CurrentLineBuffer.Append(s); FlushCurrentLineBuffer(); }
public bool IsInNewLine() { return(CurrentLineBuffer.Length < 30 && String.IsNullOrWhiteSpace(CurrentLineBuffer.ToString())); }
public void Write(object obj) { CurrentLineBuffer.Append(obj); }
public void Write(string format, object arg0) { CurrentLineBuffer.AppendFormat(format, arg0); }
public void WriteLine(string format, params object[] args) { CurrentLineBuffer.AppendFormat(format, args); FlushCurrentLineBuffer(); }