/// <summary> /// Writes a data line with the items provided in the List /// </summary> /// <param name="Params"></param> public void WriteDataLine(List <string> Params) { if (Transpose) { Formatted.AddRow(Params); } else { ResponseBody.AppendFormat("\nD\t{0}", String.Join("\t", Params)); } }
/// <summary> /// Writes a header line with the items provided in the List /// </summary> /// <param name="Headers"></param> public void WriteHeaderLine(List <string> Headers) { if (Transpose) { if (Formatted != null) { ResponseBody.Append(Formatted.ToString()); } Formatted = new FormattedOutput(Headers); Formatted.Transpose = true; } else { ResponseBody.AppendFormat("\nH\t{0}", String.Join("\t", Headers)); } }
/// <summary> /// Writes a Header line with the specified parameters /// </summary> /// <param name="Params"></param> public void WriteHeaderLine(params object[] Params) { if (Transpose) { if (Formatted != null) { ResponseBody.Append(Formatted.ToString()); } Formatted = new FormattedOutput(Params); Formatted.Transpose = true; } else { ResponseBody.AppendFormat("\nH\t{0}", String.Join("\t", Params)); } }
/// <summary> /// Writes the closing ASP response tags /// </summary> protected void WriteResponseEnd() { ResponseBody.AppendFormat("\n$\t{0}\t$", (Regex.Replace(ResponseBody.ToString(), "[\t\n]", "")).Length); }
/// <summary> /// Write's clean data to the stream /// </summary> /// <param name="Message"></param> public void WriteFreeformLine(string Message) { ResponseBody.AppendFormat("\n{0}", Message); }