Inheritance: global::java.io.FilterOutputStream, global::java.lang.Appendable, global::java.io.Closeable
Ejemplo n.º 1
0
 public ResultPrinter(PrintStream writer)
 {
   base.\u002Ector();
   ResultPrinter resultPrinter = this;
   this.fColumn = 0;
   this.fWriter = writer;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new PrintWriter from an existing OutputStream.  This
 /// convenience constructor creates the necessary intermediate
 /// OutputStreamWriter, which will convert characters into bytes using the
 /// default character encoding.
 /// </summary>
 /// <param name="out">        An output stream </param>
 /// <param name="autoFlush">  A boolean; if true, the <tt>println</tt>,
 ///                    <tt>printf</tt>, or <tt>format</tt> methods will
 ///                    flush the output buffer
 /// </param>
 /// <seealso cref= java.io.OutputStreamWriter#OutputStreamWriter(java.io.OutputStream) </seealso>
 public PrintWriter(OutputStream @out, bool autoFlush) : this(new BufferedWriter(new OutputStreamWriter(@out)), autoFlush)
 {
     // save print stream for error propagation
     if (@out is java.io.PrintStream)
     {
         PsOut = (PrintStream)@out;
     }
 }
Ejemplo n.º 3
0
 public virtual void printStackTrace(PrintStream stream)
 {
   ((Throwable) this).printStackTrace(stream);
   if (this.getParent() == null)
     return;
   stream.println("ParentException: ");
   Throwable.instancehelper_printStackTrace((Exception) this.getParent(), stream);
 }
Ejemplo n.º 4
0
		static Console ()
		{
			@in = new StreamInputStream (System.Console.OpenStandardInput ());
			@out = new StreamOutputStream (System.Console.OpenStandardOutput ());
			@err = new StreamOutputStream (System.Console.OpenStandardError ());
			@out_ps = new ConsolePrintStream (@out);
			@err_ps = new ConsolePrintStream (@err);

			console = new Console (@in, @out);
		}
Ejemplo n.º 5
0
        static Console()
        {
            @in     = new StreamInputStream(System.Console.OpenStandardInput());
            @out    = new StreamOutputStream(System.Console.OpenStandardOutput());
            @err    = new StreamOutputStream(System.Console.OpenStandardError());
            @out_ps = new ConsolePrintStream(@out);
            @err_ps = new ConsolePrintStream(@err);

            console = new Console(@in, @out);
        }
 public PrintStreamLogTarget(PrintStream printStream)
 {
   base.\u002Ector();
   PrintStreamLogTarget printStreamLogTarget = this;
   if (printStream == null)
   {
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new NullPointerException();
   }
   else
     this.printStream = printStream;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Flushes the stream and checks its error state. The internal error state
 /// is set to <code>true</code> when the underlying output stream throws an
 /// <code>IOException</code> other than <code>InterruptedIOException</code>,
 /// and when the <code>setError</code> method is invoked.  If an operation
 /// on the underlying output stream throws an
 /// <code>InterruptedIOException</code>, then the <code>PrintStream</code>
 /// converts the exception back into an interrupt by doing:
 /// <pre>
 ///     Thread.currentThread().interrupt();
 /// </pre>
 /// or the equivalent.
 /// </summary>
 /// <returns> <code>true</code> if and only if this stream has encountered an
 ///         <code>IOException</code> other than
 ///         <code>InterruptedIOException</code>, or the
 ///         <code>setError</code> method has been invoked </returns>
 public virtual bool CheckError()
 {
     if (@out != null)
     {
         Flush();
     }
     if (@out is java.io.PrintStream)
     {
         PrintStream ps = (PrintStream)@out;
         return(ps.CheckError());
     }
     return(Trouble);
 }
Ejemplo n.º 8
0
 public virtual void printUsedModules(PrintStream p)
 {
   Module[] allModules = this.getAllModules();
   ArrayList arrayList1 = new ArrayList();
   ArrayList arrayList2 = new ArrayList();
   for (int index = 0; index < allModules.Length; ++index)
   {
     if (this.isModuleAvailable((ModuleInfo) allModules[index]))
       arrayList1.add((object) allModules[index]);
     else
       arrayList2.add((object) allModules[index]);
   }
   p.print("Active modules: ");
   p.println(arrayList1.size());
   p.println("----------------------------------------------------------");
   for (int index = 0; index < arrayList1.size(); ++index)
   {
     Module module = (Module) arrayList1.get(index);
     p.print((object) new PadMessage((object) module.getModuleClass(), 70));
     p.print(" [");
     p.print(module.getSubSystem());
     p.println("]");
     p.print("  Version: ");
     p.print(module.getMajorVersion());
     p.print("-");
     p.print(module.getMinorVersion());
     p.print("-");
     p.print(module.getPatchLevel());
     p.print(" Producer: ");
     p.println(module.getProducer());
     p.print("  Description: ");
     p.println(module.getDescription());
   }
 }
Ejemplo n.º 9
0
 public TextListener(PrintStream writer)
 {
   TextListener textListener = this;
   this.fWriter = writer;
 }
Ejemplo n.º 10
0
		/// <summary>
		/// Prints a listing of this container to the specified output
		/// stream.
		/// </summary>
		public void list(PrintStream @out, int @indent)
		{
		}
Ejemplo n.º 11
0
 /// <summary>
 /// Prints a listing of this component to the specified output
 /// stream.
 /// </summary>
 public void list(PrintStream @out)
 {
 }
		/// <summary>
		/// Print the the trace of methods from where the error
		/// originated.
		/// </summary>
		public void printStackTrace(PrintStream @s)
		{
		}
Ejemplo n.º 13
0
 public TestRunner(PrintStream writer)
   : this(new ResultPrinter(writer))
 {
 }