Exemplo n.º 1
0
 /// <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));
     }
 }
Exemplo n.º 2
0
        /// <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));
            }
        }
Exemplo n.º 3
0
        /// <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));
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Writes the closing ASP response tags
 /// </summary>
 protected void WriteResponseEnd()
 {
     ResponseBody.AppendFormat("\n$\t{0}\t$", (Regex.Replace(ResponseBody.ToString(), "[\t\n]", "")).Length);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Write's clean data to the stream
 /// </summary>
 /// <param name="Message"></param>
 public void WriteFreeformLine(string Message)
 {
     ResponseBody.AppendFormat("\n{0}", Message);
 }